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

前端 未结 2 1739
囚心锁ツ
囚心锁ツ 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:07

    The difference is that 'drive.file' only gives you permission to files that your app has created or the user has explicitly shared with your app, whereas 'drive' gives your app permission to see the all the files in the user's drive.

    See

    https://developers.google.com/drive/web/scopes

提交回复
热议问题