Integration
Google Cloud Console
Set up OAuth credentials for Google APIs
This guide explains how to obtain OAuth credentials for Google APIs (Gmail, Google Sheets, etc.) for personal testing.
Create Project
- Go to Google Cloud Console
- Click Select a project > New Project
- Enter a project name and click Create
Enable APIs
- Go to APIs & Services > Library
- Search and enable the APIs you need, like Gmail API / Google Sheets API
Configure OAuth Consent Screen
- Go to APIs & Services > OAuth consent screen
- Select External and click Create
- Fill in the required fields:
- App name
- User support email
- Developer contact email
- Click Save and Continue
- Skip Scopes for now, click Save and Continue
- Add your Google account as a Test user
- Click Save and Continue
Create OAuth Client
- Go to APIs & Services > Credentials
- Click Create Credentials > OAuth client ID
- Select Web application as Application type
- Enter a name for the client
- Add Authorized redirect URIs:
https://developers.google.com/oauthplayground - Click Create
- Copy the Client ID and Client Secret
Get Refresh Token
- Go to OAuth 2.0 Playground
- Click the gear icon (Settings) in the top right
- Check Use your own OAuth credentials
- Enter your Client ID and Client Secret
- Close the settings panel
- In the left panel, select the scopes you need (see Gmail or Google Sheets for scope options)
- Click Authorize APIs
- Sign in with your test account and grant permissions
- Click Exchange authorization code for tokens
- Copy the Refresh token
Use the Credentials
You now have three values to use in your VM0 configuration:
| Secret | Value |
|---|---|
*_CLIENT_ID | From step 7 of "Create OAuth Client" |
*_CLIENT_SECRET | From step 7 of "Create OAuth Client" |
*_REFRESH_TOKEN | From step 10 of "Get Refresh Token" |
See Gmail or Google Sheets for configuration examples.