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:
and many more
For more information on required APIs, scopes, redirect URIs, and connection details, please see our documentation for the Google app that you are using.
Open the Google Cloud Platform APIs & Services dashboard and login with your Google account.
Click CREATE to create a project.
Enter Project name and choose Location. Click CREATE.
Click ENABLE APIS AND SERVICES.
Type the name of the API you want to call in the Search for API & Services field and click on it.
Click ENABLE to enable the API.
Open the Google Cloud Platform APIs & Services Credentials OAuth consent screen tab.
Fill out the form as follows and click Save to save the settings:
Application name
e.g.
Make
Authorized domains
Make.com
Integromat.com
Click Create credentials dropdown and choose the OAuth client ID option from the menu.
Fill out the form as below and click Create to create the app:
Application type
Web application
Name
e.g.
Make
Authorized redirect URIs
https://www.integromat.com/oauth/cb/app
OAuth redirect URI domain
Notice that the redirect URI starts with
https://www.integromat.com
instead ofhttps://www.make.com
. This is currently a known issue in Make.Make was formerly called Integromat, which means you can trust this URL as much as any Make URL.
Please make sure all your OAuth redirect URIs point to
https://www.integromat.com/oauth/cb/oauth2
.A dialog containing app's Client ID and Client Secret pops up.
In Make, create a new scenario.
Insert the HTTP > Make an OAuth 2.0 request module.
Open the module's configuration and click Add button next to the Connection field to create a new connection.
Tick the Show advance settings option.
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):
Google Cloud Pub/Sub API - see Cloud Pub/Sub reference for per-method OAuth scopes (e.g. Method: projects.topics.publish)
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:The connection setup should look like this:
Click Continue.
If a popup titled "This app isn't verified" appears, click on the "Advanced" link and then on the "Go to Make (unsafe)" link:
A window pops up. Review the permissions and click Allow.
The connection is successfully created.
Configure the module to make an API call: