...
Enter a Project name for your project, click on “CREATE” to create it.
...
After creating the project, click on “SELECT PROJECT” to configure.
...
Create An App
Go to APIs & Services > Enabled APls & services, click on “ENABLE APIS AND SERICES”.
...
Find the ”Gmail API“ card, Click on “ENABLE” to enable this API.
...
Click on OAuth consent screen, select External User Type and click on “CREATE” to create an app for the project.
...
In the OAuth consent screen step, enter the App name and User support email for this app.
...
Enter your domain
your_domain
to the Authorized domains, your email address to the Developer contact information, then click on “SAVE AND CONTINUE”.
...
In the Scopes step, click on “ADD OR REMOVE SCOPES”, select the scope “…/auth/userinfo.email”and click on “UPDATE”, then click on “SAVE AND CONTINUE”.
...
In the Test users step, click on “SAVE AND CONTINUE”.
...
In the Summary step, click on “BACK TO DASHBOARD”.
...
Click on “PUBLISH APP” to push the app to production.
...
Configure the App
In the Credentials, click on “+CREATE CREDENTIALS” to select “OAuth client ID”.
...
Select Web application from Application type, add the Authorized Redirect URL
https://your_cx_domain/api/v1.0/gmail/integration/callback
to the Authorized Redirect URIs, then click on “CREATE”.
...