【发布时间】:2020-08-05 17:20:52
【问题描述】:
我只是在以下位置测试 Google Sheets API:
https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append
我正在使用Try this API 部分填写请求参数并执行请求(将一行附加到工作表)。
我在这里关注了Step 1:
https://developers.google.com/sheets/api/quickstart/js
为了:
- 启用 Google 表格 API
- 创建 API 密钥
因此我有:
- 客户 ID
- 客户端密码
- API 密钥
在Try this API > Credentials 部分,有两个复选框:
- 谷歌 OAuth 2.0
- API 密钥
我尝试uncheck Google OAuth 2.0 选项,以便我可以使用 API Key 发出请求 - 但是我看不到在哪里可以输入 API Key。
如何在 Try this API 部分定义 API 密钥,以便仅使用 API Key(而不是 Google OAuth 2.0 )发出请求。
【问题讨论】:
标签: google-sheets-api google-apis-explorer