启用Google电子表格API

时间:2013-11-27 16:10:46

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

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

有人可以帮助我吗?

1 个答案:

答案 0 :(得分:1)

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

有关电子表格API的更多信息,请参阅this,有关云端硬盘的this