- Go to "console.developers.google.com"
- Then Go to "console.developers.google.com/iam-admin/projects"
- Create your own Project
- Go to "Service Accounts" menu and Enable "API" to On
- Go to "API Manager" menu and then Go to "Credentials"
- Clicked on "Create Credentials" and Clicked on "OAuth Client ID"
- Give Some "Project Name" in "OAuth Consent Screen" page and saved it
- Select "Application Type" to be Web Application
- Enter "http://localhost:8080" in "Authorized Java Scripts"
- Enter " http://localhost:8080/ " in "Authorized redirect URIs" and save it
- Download JSON file and Rename to "client_secrets.json" and Put this file in working directory
Problem Faced By Mine :
- Json file name with client_id. So it throws some error
Solution : Should rename to "client_secrets.json"
- Entered like "http://localhost:8080" in "Authorized redirects URIs" field. So I got authentication failed issue in webbrowser while running script.
Solution : Should entered like this "http://localhost:8080/"
Comments
Post a Comment