Steps for Gmail API Configuration:

  • composer require google/apiclient:^2.12.1
  • Go to the Google Developer Console.
  • Create a new project. You can also select an existing project.
  • Add a name to your project. Google Console will generate a unique Project ID for it.
  • Your project will appear on top of the left sidebar.
  • Click on Library. You will see a list of Google APIs.
  • Enable Gmail API.
  • Click on the Credentials. Select Oauth Client id under Create credentials. Choose the radio button for Web Application.
  • Give the Name. In the ‘Authorized redirect URIs’ add the link of the redirect URL. and configure redirect URL http://your-domain-name.com/gmail-api/callback
  • Click on the Create button. You will get a client ID and client secret in the pop-up. Copy these details. We will need it in a moment.
  • Configure Google API credentials in Drupal Gmail API configuration page: http://your-domain-name.com/admin/config/system/gmail

Project information

Releases