Drive API access to document with service account

后端 未结 2 835
情话喂你
情话喂你 2021-01-16 22:34

I\'m attempting to access a spreadsheet that\'s under the \"google.com\" domain using the Google Drive Java API through a service account. I need to export several of the wo

2条回答
  •  -上瘾入骨i
    2021-01-16 23:01

    You also have to grant the service account in the drive file you want to access to. Just Share the document you want to get access with the EMAIL ADDRESS that appears in the Google Developers Console (e.g. XXXXX@developer.gserviceaccount.com)

提交回复
热议问题