I wanted to use the gmail API in Google collaboration, so I did the following, but I got an error during authentication, so could you tell me what to do?
1. Create an oauth 2.0 client ID (desktop client) on the google cloud platform and save the json file to the google drive mounted on the collateral.
2. Run Python code by copying almost complete code samples from Steps 1 and 2 of the following sites
3. For authentication, we did the following:
·Please visit this URL to authorize this application: https://... and the link on the authentication screen appears.
"·Select an account at the link,
·This application has not been confirmed by Google.Access to the application currently being tested has been granted.US>Continue only if you trust the developer you are inviting.
"·Select ""Accessible Information"" on the ""~ is requesting access to Google Account"" screen
このCannot access this site, localhost denied connection...ERR_CONNECTION_REFUSED 」
I tried to summarize it as much as possible, but I apologize for the long sentence.Thank you for your cooperation.
Thank you for your comment.The code is as follows:oauth google-colaboratory gmail-api
I have dealt with the Gmail API on Android as well and had similar problems.
To access the application being tested, test users can use the
·Authorization on the part of the test user
·Registration of test users on the project side
You will need two.
I think you are creating a project to use the Gmail API for Google Cloud Platform.
There is a part to register test users in API and Services → OAuth Consent Screen, so please try adding test users here.
(I'm sorry if the above answers are incorrect depending on the platform.)
© 2022 OneMinuteCode. All rights reserved.