Google Drive api scope and file access (drive vs drive.files)

前端 未结 2 1735
囚心锁ツ
囚心锁ツ 2020-12-09 18:36

I have created two refresh tokens for me: one for

SCOPE = \'https://www.googleapis.com/auth/drive\'

and another

SCOPE = \         


        
2条回答
  •  再見小時候
    2020-12-09 19:25

    You should really look into using drive.file, that is where they are trying to push users. I was just fighting with this myself and found that if you use the drive.file scope, you can then subsequently open the file that is chosen using the API for the file type, but only if you set the correct AppID.

    See here: https://developers.google.com/picker/docs/#gdata

    This allows you to get past the 404 error that you get if you don't set the AppID.

提交回复
热议问题