基于这个答案:https://photo.stackexchange.com/a/92941/71846
我正在尝试设置我的新东芝FlashAir与我的Google帐户同步。
这里的说明是:http://www.fixstars.com/en/news/?p=451
但是,我对第二步的第1部分有问题(我怀疑这些步骤实际上已经过时了)。

我忽略了表单数据中的信息,因为我的Google键就在那里。
在说明中,它提到:“注意:谷歌告诉你使用”https://www.googleapis.com/auth/drive“作为作用域,但这将返回一个”Invalid_scope:未被授权请求范围“。使用/need/代替将授予我们所需的Google授权。”
因此,我还尝试使用“https://www.googleapis.com/auth/drive”作为作用域,但在JSON响应中得到了相同的“无效请求”。
发布于 2018-01-30 23:20:24
我认为在您的问题中,在检索刷新令牌的过程中可能会出现问题。那么使用Drive怎么样?下面的流程是从您的问题中的https://photo.stackexchange.com/a/92941/71846的Google示例的第1部分到第3部分。此流检索使用驱动器API的刷新令牌。
流动:
https://console.cloud.google.com/apis/library/drive.googleapis.com/?project=### project ID ###的“库”,启用驱动程序接口。https://console.cloud.google.com/apis/credentials?project=### project ID ###的“凭据”。
1. Please input your clientId and access `https://accounts.google.com/o/oauth2/auth?client_id=### clientId ###&response_type=code&redirect_uri=urn:ietf:wg:oauth:2.0:oob&scope=https://www.googleapis.com/auth/drive`
- By authorizing, the code is retrieved.
- Copy "code".
curl -X POST https://accounts.google.com/o/oauth2/token -d "client_id=### clientId ###" -d "client_secret=### client secret ###" -d "redirect_uri=urn:ietf:wg:oauth:2.0:oob" -d "grant_type=authorization_code" -d "code=### code ###"
注意:
如果我误解了你的问题,我很抱歉。
https://stackoverflow.com/questions/48528877
复制相似问题