To use OAuth 2.0 in your installed application, you need an OAuth 2.0 client ID, which your application uses when requesting an OAuth 2.0 access token. See https://developers.google.com/api-client-library/python/auth/installed-app for more information.
To create an OAuth 2.0 client ID in the console, go to the API Console. https://console.developers.google.com
If the API Manager page isn't already open, open the console left side menu and select API Manager.
From the projects list menu in the top bar create a new project by clicking the pluss sign in the top right corner. Type a project name.
- In the left sidebar menu, click Credentials.
- Click "Create credentials", then select "OAuth client ID".
- Click "Configure consent screen".
- Enter email address and fill in "Product name shown to users".
- Press the "save" button.
- Select the Application type by clicking the "Other" radio button.
Note: "Other" means here "installed apllication". - Enter name of client ID, and press the "Create" button.
- Then press "Ok" on the summary screen.
Then click the button with a pencil "Edit OAuth client" to the right of the summary line of the newly created client in "Credentials" screen.
Click "DOWNLOAD JSON" in the top bar.