I'm trying to learn how to access Google Drive with Python, but I have problems.
I followed the tutorial of the official google website: https://developers.google.com/drive/...t-python?hl=es In addition, I saw a video tutorial about this, I think I am doing the same like the guys from the video.
I will tell you the steps that I followed literally:
1 - Install the tool to install the SDK from Google.
2 - Install the SDK from Google: "pip install --upgrade google-api-python-client"
At this stage, everything is going well, actually for import, etc. there is no mistake.
3 - API to enable the drive: I follow the steps as is, create a "client identifier for the native application" and "client identifier for the Internet" application "
4 - I create a document "document.txt" and copy the source code as a quick launch.
5 - I replace "CLIENT_ID" and "CLIENT_SECRET", indicating in the "Client ID for the native application" (I also tested the web application)
6 - I launch, and exit to the screen:
No handlers could be found for logger "oauth2client.util" Go to the following link in your browser: <link> Enter verification code:
Looking for a solution, I found something to get some information about this error:
import logging ... logging.basicConfig()
Now output:
C:\workspaces\asd\prsGoogleApi>quickstart.py WARNING:oauth2client.util:__init__() takes at most 4 positional arguments (5 giv en) Go to the following link in your browser: <link> Enter verification code:
If I try to access this link, the error is:
401 - That an error Error: invalid_client. No application name. Request details: response_type=code scope=https: