google 工作表 API 快速入门 (v4) 问题
Issue with google sheets API quickstart (v4)
我正在尝试完成以下教程:
https://developers.google.com/sheets/api/quickstart/nodejs#
当我到达 运行 快速启动文件的步骤时
node quickstart.js 我收到以下错误消息:
Olivers-MacBook-Pro:增量 oliverpike$ 节点 quickstart.js
undefined:1
SyntaxError: Unexpected end of JSON input
at Object.parse (native)
at /Volumes/github-image/bitcoin-core/quickstart.js:43:39
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:445:3)
quickstart.js 正在尝试从 ~/.credentials/sheets.googleapis.com-nodejs-quickstart.json 读取,但该文件为空,导致意外结束JSON 个输入错误。
如何确定该文件中需要包含哪些内容?
删除文件,代码将触发 else
条件以获取身份验证。
我正在尝试完成以下教程: https://developers.google.com/sheets/api/quickstart/nodejs#
当我到达 运行 快速启动文件的步骤时 node quickstart.js 我收到以下错误消息: Olivers-MacBook-Pro:增量 oliverpike$ 节点 quickstart.js
undefined:1
SyntaxError: Unexpected end of JSON input
at Object.parse (native)
at /Volumes/github-image/bitcoin-core/quickstart.js:43:39
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:445:3)
quickstart.js 正在尝试从 ~/.credentials/sheets.googleapis.com-nodejs-quickstart.json 读取,但该文件为空,导致意外结束JSON 个输入错误。
如何确定该文件中需要包含哪些内容?
删除文件,代码将触发 else
条件以获取身份验证。