Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Google API for Python- where do I get the client_secrets.json file from?

I am looking into using the Google API to allow users to create/ edit calendar entries in a company calendar (Google calendar) from within iCal.

I'm following the instructions at: https://developers.google.com/api-client-library/python/auth/web-app

Step 2 says that I will need the application's client ID and client secret. I can see the client ID in the 'Credentials' page for my app, but I have no idea what the client secret is or where I get that from- anyone know what this is? How do I download it? Where can I get the value from to update the field?

like image 348
Noble-Surfer Avatar asked Oct 19 '16 16:10

Noble-Surfer


People also ask

What is Client_secrets JSON?

A client_secrets.json file is a JSON formatted file containing the client ID, client secret, and other OAuth 2.0 parameters.

How do I get client secret file?

If you go to your Google developers console you should see a section titled OAuth 2.0 client IDs. Click on an entry in that list, and you will see a number of fields, including Client secret.


2 Answers

client_ids_tab.png

Go to credentials tab. Client IDs will be listed there. In the right, there is an option to download it (.json file)

downloadbutton.png

like image 101
ceekay Avatar answered Oct 02 '22 23:10

ceekay


If you go to your Google developers console you should see a section titled OAuth 2.0 client IDs. Click on an entry in that list, and you will see a number of fields, including Client secret.

If you have not yet created credentials, click the Create credentials button, and follow the instructions to create new credentials, and then follow the steps outlined above to find the Client secret.

like image 20
elethan Avatar answered Oct 03 '22 00:10

elethan