Google drive api-File uploaded but not listed

前端 未结 1 1209
说谎
说谎 2021-01-07 09:58

I am new to google drive api.. I am working on uploading files from my server to google drive.

In my gmail account I have

  1. created a Service Account, d
相关标签:
1条回答
  • 2021-01-07 10:36

    Why do the files not listed in my google drive list?

    Because they don't belong to you. They belong to the service account.

    Why the service account I created in google console is treated as like a different user.

    Because that is what a service account, ie. it's own user.

    If you want uploaded files to be in your own Drive contents, then you need to use your own account credentials to the Drive SDK. This does not need to involve user interaction. You simply need to acquire a refresh token one time, then use that subsequently to generate the access token for Drive.

    0 讨论(0)
提交回复
热议问题