I am trying to upload a file using python to google drive. I started with the quick start shown here: https://developers.google.com/drive/api/v3/quickstart/python Ive created the oAuth 2 client id and downloaded the credentials json file to my project folder. However when I try to run the code, when it opens the browser to confirm I receive the following error:
Error: restricted_client
Unregistered scope(s) in the request: https://www.googleapis.com/auth/drive
Request Details
That’s all we know.
Ive tried changing the scope from
SCOPES = 'https://www.googleapis.com/auth/drive.metadata.readonly'
to
SCOPES = 'https://www.googleapis.com/auth/drive'
however I get the same error I have also tried making a new credential and client id, still get the same error
can anyone please point out what I am doing wrong?