N
N
newPsevdonim2021-08-10 12:13:06
Python
newPsevdonim, 2021-08-10 12:13:06

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))

At startup, it asks to select an account, and after selecting it, I get an error that there is no access to the project.
Authorization
failed Error 403: access_denied
The developer hasn't given you access to this app. It's currently being tested and it hasn't been verified by Google. If you think you should have access, contact the developer

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2021-08-15
@oshliaer

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 question

Ask a Question

731 491 924 answers to any question