Calling Google APIs via the "HTTP > Make a OAuth 2.0 request" module

This is a step-by-step guide on calling Google APIs like:

from Integromat:

  1. Open the Google Cloud Platform APIs & Services dashboard and login with your Google account.
  2. If you have not created any project yet, create one by clicking on the "CREATE" link, fill the Project name field and click on the "CREATE" button:
    mceclip3.png
    mceclip2.png
  3. Click on the "ENABLE APIS AND SERVICES" button:
    mceclip0.png
  4. Type the name of the API you would like to call in the Search for APIs & Services field and click on it:
    mceclip1.png
    mceclip2.png
  5. Click on the "ENABLE" button to enable the API:
    mceclip3.png
  6. Open the Google Cloud Platform APIs & Services Credentials OAuth consent screen tab.
  7. Fill the form as follows and then click on the "Save" button to save the settings:
    Application name e.g. Integromat
    Authorized domains integromat.com
  8. Open the Google Cloud Platform APIs & Services Credentials.
  9. Click on the "Create credentials" dropdown button and choose the "OAuth client ID" option from the menu:
    mceclip0.png
  10. Fill the form as follows and then click on the "Create" button to create the app:
    Application type Web application
    Name e.g. Integromat
    Authorized redirect URIs https://www.integromat.com/oauth/cb/oauth2
    mceclip2.png
  11. A dialog containg app's Client ID and Client Secret will pop up:
    mceclip4.png
  12. In Integromat, create a new scenario.
  13. Insert the HTTP > Make a OAuth 2.0 request module.
  14. Open the module's configuration and click on the "Add" button next to the Connection field to create a new connection.
  15. Tick the Show advanced settings option.
  16. Fill the connection setup as follows:
    Flow type Authorization Code
    Authorize URI https://accounts.google.com/o/oauth2/v2/auth
    Token URI https://www.googleapis.com/oauth2/v4/token
    Scope Add all the scopes the API call requires (check also OAuth 2.0 Scopes for Google APIs for a complete list of scopes):

    Scope separator SPACE
    Client ID The content of the Here is your client ID field from step 11.
    Client Secret The content of the Here is your client secret field from step 11.
    Authorize parameters Add access_type - offline key-value pair:
    mceclip5.png
    Should you experience authentication issues e.g. with token refreshing, try adding also the prompt - consent key-value pair.
  17. The connection setup should look like this:
    mceclip5.png
  18. Click on the "Continue" button.
  19. Should a popup titled "This app isn't verified" appear, click on the "Advanced" link and then on the "Go to Integromat (unsafe)" link:
    2019-06-21_13_36_59-Sign_in_-_Google_Accounts.png 2019-06-21_13_37_51-Sign_in_-_Google_Accounts.png
  20. A window will pop up. Review the permissions and click on the "Allow" button. The connection should be now successfully created.
  21. Configure the module to make an API call:

Popular use cases from our blog

slack-automation-illustration

Slack Automation: 20 Free Templates to Get You Inspired

google-sheets-automation-alt

Google Sheets Automation for Ecommerce: 23 Free Templates

tweet-automation-illustration

How to Get Someone's Tweets Before Anyone Else Does

onboarding-automation-with-integromat-alt

How to Automate Employee Onboarding in Minutes with Integromat

shopify-order-to-manufacturer-illustration-alt

How to Auto Send Shopify Orders to Dropshipping Suppliers [Guide]

strava-exercise-to-google-sheets-illustration

Like a Champ: How to Save Strava Activities to Google Sheets

Didn’t find what you were looking for?

Ticket

Create a ticket

Contact our world-class support team and tell us what’s happening.

Create a ticket
Expert

Find an expert

We feature a network of 450+ certified partners across the globe who are ready to help

Find an expert

Automate any workflow in your business

Sign up for a free account today. No credit card required, no time limits on free plan.