且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Google 云端硬盘服务帐户和“请求中的未经授权的客户端或范围"

更新时间:2022-01-03 22:10:27

老问题之类的,但另一个答案中的链接已失效.

Old question and all that, but the link in the other answer is dead.

我的研究表明,我需要授予服务帐户电子邮件地址访问 Google 驱动器上目录的权限,但我终生不知道如何做到这一点.

My research suggests that I need to give the service account email address access to a directory on Google drive, but I can't find out for the life of me how to do that.

获得电子邮件地址后,您可以通过 Google Drive UI 执行此操作:

You can do this through the Google Drive UI after you have the email address:

  1. https://console.developers.google.com/获取服务帐户的电子邮件地址api/凭据
  2. 在 Google 云端硬盘中,导航到您要共享的文件夹
  3. 右键单击文件夹
  4. 点击分享"
  5. 输入您在第 1 步中获得的电子邮件地址,然后点击完成".