【问题标题】:Enable google spreadsheet API启用谷歌电子表格 API
【发布时间】:2013-11-27 16:10:45
【问题描述】:

我正在尝试做一个需要 google 电子表格 API 的应用程序,但看起来我无法从控制台启用它。因此,我无法请求对文档的权限。
我知道这是可能的,因为我找到了这个游乐场:https://developers.google.com/oauthplayground,它要求电子表格 API 的权限,但我只是不知道他们是如何做到的。

有人可以帮帮我吗?

【问题讨论】:

    标签: permissions google-api oauth-2.0 google-sheets google-spreadsheet-api


    【解决方案1】:

    您需要使用具有https://spreadsheets.google.com/feeds 权限范围的OAuth2。如果您想在用户的云端硬盘中创建新的电子表格文件,那么您还需要 https://www.googleapis.com/auth/drive 范围。

    有关电子表格 API 的更多信息,请参阅 this,有关 Drive 的更多信息,请参阅 this

    【讨论】: