So I provide my credentials along with a python script to allow downloading some files from my Google Drive. I tried using these scopes but they all fail:
- https://www.googleapis.com/auth/drive.file
- https://www.googleapis.com/auth/drive.activity.readonly
- https://www.googleapis.com/auth/drive.metadata.readonly
Only this one worked: https://www.googleapis.com/auth/drive
But this token is asking the user to give read, write, edit, access to Google Drive. Why do they need to have all of these permissions, just to be able to download files from another Google Drive i.e. mine?
I can't find the minimum scope that I need for this operation.
I am using the Google Drive API in python.
https://www.googleapis.com/auth/drivecan be used, how about usinghttps://www.googleapis.com/auth/drive.readonlyinstead ofhttps://www.googleapis.com/auth/drive? The official document saysAllows read-only access to file metadata and file content.. Ref - Tanaike