To create a Google Developers Console project and client ID, follow these steps:
Go to the Google Developers Console .
Select a project, or create a new one by selecting Create a Project from your projects list:
In the Project name field, type in a name for your project.
Your Project ID is created by the console for you.
Click the Create button and wait for the project to be created.
In the sidebar under "APIs & auth", select Credentials, and click the OAuth consent screen tab.
Choose an Email Address, specify a Product Name, and click Save.
In the sidebar under "APIs & auth", select Credentials.
Click Create a new Client ID — a dialog box appears.
Register the origins from which your app is allowed to access the Google APIs, as follows. An origin is a unique combination of protocol, hostname, and port.
In the Application type section of the dialog, select Web application.
In the Authorized JavaScript origins field, enter the origin for your app. You can enter multiple origins to allow for your app to run on different protocols, domains, or subdomains. Wildcards are not allowed. In the example below, the second URL could be a production URL.
http://localhost:8080
https://myproductionurl.example.com
In the Authorized redirect URI field, delete the default value. Redirect URIs are not used with JavaScript APIs.
Click the Create Client ID button.
In the resulting Client ID for web application section, copy the Client ID that your app will need to use to access the APIs.
Go to the Google Developers Console .
Select a project, or create a new one by selecting Create a Project from your projects list:
In the Project name field, type in a name for your project.
Your Project ID is created by the console for you.
Click the Create button and wait for the project to be created.
In the sidebar under "APIs & auth", select Credentials, and click the OAuth consent screen tab.
Choose an Email Address, specify a Product Name, and click Save.
In the sidebar under "APIs & auth", select Credentials.
Click Create a new Client ID — a dialog box appears.
Register the origins from which your app is allowed to access the Google APIs, as follows. An origin is a unique combination of protocol, hostname, and port.
In the Application type section of the dialog, select Web application.
In the Authorized JavaScript origins field, enter the origin for your app. You can enter multiple origins to allow for your app to run on different protocols, domains, or subdomains. Wildcards are not allowed. In the example below, the second URL could be a production URL.
http://localhost:8080
https://myproductionurl.example.com
In the Authorized redirect URI field, delete the default value. Redirect URIs are not used with JavaScript APIs.
Click the Create Client ID button.
In the resulting Client ID for web application section, copy the Client ID that your app will need to use to access the APIs.
Category
📚
Learning