Answer the question
In order to leave comments, you need to log in
How to get access to google project?
I started setting up a google project to use google drive. I connected the application that I want to use, received an access token. Then he added two of his accounts to the project, assigning them the role of the owner. Then I ran the following code in python.
from main import Create_Service
CLIEN_SECRET_FILE = 'client_secret_844464197570-vh4is72q90s1qmoc2pbgmk8r9vlhv61m.apps.googleusercontent.com.json'
API_NAME = 'drive'
API_VERSION = 'v3'
SCOPES = ['https://www.googleapis.com/auth/drive']
service = Create_Service(CLIEN_SECRET_FILE, API_NAME, API_VERSION, SCOPES)
print(dir(service))
Answer the question
In order to leave comments, you need to log in
As you may have noticed, the system prompts you to contact the developer, i.e. with you.
Most likely, you need to add access rights to the Google Drive API in the project where you got the service account from.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question