Google Drive

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 documentationarrow-up-right on setting up your workspace. Below is a streamlined process for connecting Google APIs to Graffo.

  1. Create a Google Cloud projectarrow-up-right for your Google Workspace (if you don't already have one)

  2. Enable the Google Workspace APIsarrow-up-right for Gmail, Google Calendar, and Google Drive

  3. Under Audience, select Make external and add test users

  4. Under 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.readonly
  1. Under "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/callback

    Local: http://localhost:8001/source-connections/callback

  2. Locate the client ID and client secret from your newly created OAuth client. Add these credentials to the dev.integrations.yml file to enable Google API integration.

Last updated