Google drive api 将Google Drive API与来自tvOS的设备代码一起使用

Google drive api 将Google Drive API与来自tvOS的设备代码一起使用,google-drive-api,tvos,Google Drive Api,Tvos,我正在尝试使用GoogleAPI中的设备代码来使用GoogleDrive API。在文档中,Google Drive范围似乎没有列出: 然而,在完全相同的页面中,他们有一个在 当我尝试使用任何google Drive作用域进行连接时,会发出以下请求: POST /o/oauth2/device/code HTTP/1.1 Content-Type: application/x-www-form-urlencoded Host: accounts.google.com Connection: c

我正在尝试使用GoogleAPI中的设备代码来使用GoogleDrive API。在文档中,Google Drive范围似乎没有列出:

然而,在完全相同的页面中,他们有一个在

当我尝试使用任何google Drive作用域进行连接时,会发出以下请求:

POST /o/oauth2/device/code HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: accounts.google.com
Connection: close
User-Agent: Paw/3.1 (Macintosh; OS X/10.12.4) GCDHTTPRequest
Content-Length: 136

client_id=clientid&scope=https://www.googleapis.com/auth/drive.readonly
我得到的答案是:

HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=utf-8
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: Mon, 01 Jan 1990 00:00:00 GMT
Date: Tue, 23 May 2017 03:02:31 GMT
Server: ESF
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Alt-Svc: quic=":443"; ma=2592000; v="37,36,35"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: Close

{
  "error" : "invalid_scope"
}

我只是在犹豫,因为如果我犯了错误或没有犯错误,文档中是否可能存在差异。

如果您正在测试并希望有,请使用“”。即使如此,如果您正在测试并希望有,我也会得到无效的\u范围错误。即使如此,我也会得到无效的\u范围错误