Upload to Google Drive without any UI?

后端 未结 4 501
北荒
北荒 2021-02-03 21:57

I am looking to write a server application to upload files to Google Drive. I was previously using the Documents List API, but I see that is deprecated. I\'d like to move to the

4条回答
  •  旧时难觅i
    2021-02-03 22:09

    Your application needs the user's permission to use the API against his files. That authorisation needs to happen using web based Oauth. The result of that authorisation is your server app ends up with a refresh token, which it can store. At any time, your app can convert that refresh token to an access token and access the drive files.

    So, provided you accept that you need to do a one-time authorisation, you can achieve what you are looking for.

提交回复
热议问题