Google Drive Api Client (python): Insufficient Permission For Files().insert()
I am trying to get a simple Python Google Drive uploader working. I've created a project in the developer console, enabled the Drive API and added an OAuth 2.0 client ID (applicati
Solution 1:
Files: insert requires authorization with at least one of the following scopes
https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.appdatahttps://www.googleapis.com/auth/drive.apps.readonly
Check which scope you are authenticating with.
Solution 2:
If modifying these scopes or permissions, try deleting your previously saved credentials related file or browser cache if any.
Solution 3:
As advised by @DalmTo, the issue was an incorrect Auth
scope in:
flow_from_clientsecrets()
Post a Comment for "Google Drive Api Client (python): Insufficient Permission For Files().insert()"