PyDrive 快速入门和错误 403:access_denied

rsc*_*c05 3 google-api python-3.x google-drive-api pydrive

我正在尝试将谷歌驱动器照片下载到我的本地驱动器。我认为这应该是一项简单的任务,但实际上具有挑战性,尤其是这是我第一次尝试使用 google API。

\n

按照这个有用的Youtube 视频和此PyDrive 链接中的所有步骤进行操作

\n

我到达了它所说的步骤Rename the file to \xe2\x80\x9cclient_secrets.json\xe2\x80\x9d and place it in your working directory.

\n

然后我运行这段代码

\n
from pydrive.auth import GoogleAuth\n\ngauth = GoogleAuth()\ngauth.LocalWebserverAuth() # Creates local webserver and auto handles authentication.\n
Run Code Online (Sandbox Code Playgroud)\n

但没有到达任何地方。特别是,我得到了这个错误

\n
\n

错误 403:access_denied 开发人员尚未\xe2\x80\x99 授予您对此应用程序的访问权限。\xe2\x80\x99s 目前正在测试,\xe2\x80\x99 尚未经过\nGoogle 验证。如果您认为您应该有权访问,请联系开发人员

\n
\n

我是开发人员,我正在尝试将我的谷歌文件(实际上是图片)下载到我的本地驱动器。

\n

我感谢所有的支持。

\n

小智 6

转到 API 和服务部分,然后在 OAuth 同意屏幕选项卡中将您自己添加为“测试用户”。