Gmail
Integrate Graffo with Google APIs on localhost
This guide will walk you through connecting Google Workspace APIs to Graffo when running locally. Google provides extensive documentation on setting up your workspace. Below is a streamlined process for connecting Google APIs to Graffo.
Create a Google Cloud project for your Google Workspace (if you don't already have one)
Enable the Google Workspace APIs for Gmail, Google Calendar, and Google Drive
Under
Audience, selectMake externaland add test usersUnder
Data Access, add the following scopes:
https://www.googleapis.com/auth/docs
https://www.googleapis.com/auth/drive.photos.readonly
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.readonly
https://www.googleapis.com/auth/drive.metadata
https://www.googleapis.com/auth/drive.metadata.readonly
https://www.googleapis.com/auth/gmail.readonly
https://www.googleapis.com/auth/calendar.events.public.readonly
https://www.googleapis.com/auth/calendar.freebusy
https://www.googleapis.com/auth/calendar.readonly
https://www.googleapis.com/auth/calendar.calendars.readonly
https://www.googleapis.com/auth/calendar.events.owned.readonly
https://www.googleapis.com/auth/calendar.events.readonlyUnder "Authorized redirect URIs," click "+ Add URI" and add the Redirect URI. Use the appropriate URL for your environment:
Production (Graffo Cloud):
https://api.graffo.ai/source-connections/callbackLocal:
http://localhost:8001/source-connections/callbackLocate the client ID and client secret from your newly created OAuth client. Add these credentials to the
dev.integrations.ymlfile to enable Google API integration.
Last updated
