To authenticate a Gmail element instance you must create a project with a web application in the Google API console. After you create the project and app, Google provides a Client ID and Client secret which you will use to authenticate an element instance. You'll also need the Authorized redirect URI that you configure while creating the app.
When you set up your app, you must also enable the Gmail API.
If you've already set up an app and just need to know how to find your Client ID and Client secret, see Locate Credentials for Authentication. If you need to create a project and register an app, see Create an Application.
See the latest setup instructions in the Google API documentation.
If you already created a project and application, follow the steps below to locate the Client ID, Client secret, and Authorized redirect URI. If you have not created an app, see Create an Application.
To find your OAuth 2.0 credentials:
Click Select a project, choose your project from the list, and then click Open.
Google displays your apps and associated Client ID.
Click the pencil icon to see the Client ID, Client secret, and Authorized redirect URI.
Record the Client ID and Client secret.
Record the Authorized redirect URI for your app.
If you have not already created a project and application, you need one to authenticate with Google. Creating an application is a multi-step process:
To create a project:
To make all of the requests available in the Gmail element, you must enable the GMail API.
To enable APIs: