keys are mostly used to acquire APIs client Library. When we are calling an API
using our project app, it does not access private data. This key only used to
authenticate your application for accounting purpose.
Getting API keys:
the Google Developers Console.
a project, or create a new one.
the sidebar on the left, expand APIs & auth. Next, click APIs.
In the list of APIs, make sure all of the APIs you are using show a status of ON.
the sidebar on the left, select Credentials.
Create new Key and select the appropriate key type.
Always keep your API keys
secure, follow the best
practices for securely using API keys.
Getting Client ID:
2.0 allows users to share specific data with you while keeping their usernames,
passwords, and other information private.
your application, you need an OAuth 2.0 client ID, which your application uses
when requesting an OAuth 2.0 access token.
Next, click APIs. In the list of APIs, make sure all of the APIs you are
using show a status of ON.
and enter any additional information required.
The Google APIs Client
Library for Python uses the client_secrets.json file format for storing the client_id, client_secret, and
other OAuth 2.0 parameters.
client_secrets.json file format is a JSON
formatted file containing the client ID, client secret, and other OAuth 2.0
parameters. Here is an example client_secrets.json file for a web application:
Here is an example client_secrets.json file for an installed application: