【发布时间】:2019-11-12 21:02:02
【问题描述】:
这可能是一个简单(愚蠢)的问题,但在这一点上,我就是不明白。
我可以通过以下方式连接到范围 drive.file:
curl -d 'client_id='$idclient'' -d 'scope=https://www.googleapis.com/auth/drive.file' -d 'response_type=code' 'https://accounts.google.com/o/oauth2/device/code'
但是,当我想连接到范围 file 时,我得到 "error": "invalid_scope" 结果。
但正如我们在此屏幕截图中看到的,此范围已在 Google OAuth 页面中的我的应用程序中启用: Scope permission in my account
那么,如何连接到范围https://www.googleapis.com/auth/drive?
谢谢
【问题讨论】:
标签: curl google-drive-api