Productivity & Collaboration

Google Calendar OAuth Integration

Connect Google Calendar to your application without building and maintaining the OAuth flow.

Each user connects their own Google account through your OAuth app. Pathfix manages the authorization flow, stores and refreshes their tokens, and authenticates the requests your application makes to the Google Calendar API. What your integration does with calendars and events is up to your code.

Start building with Pathfix Read the setup guide

What can you build?

Examples of what the Google Calendar API supports. Your application implements the logic; Pathfix authenticates the requests.

  • Show upcoming events

    Read a user's events, including single and recurring events, and display them in your product.

  • Create and update events

    Add events to a user's calendar with a title, start and end times and attendees, and update them as things change in your app.

  • Let users pick their calendars

    Read the user's calendar list so they can choose which calendars your app reads from or writes to.

  • Respect user settings

    Read preferences such as the user's time zone so your app shows times correctly.

How Pathfix helps

  • 01

    OAuth authorization

    Pathfix runs the authorization flow with your Google Calendar OAuth app, so users approve access on Google’s own consent screen.

  • 02

    Token management

    Each user’s access and refresh tokens are stored by Pathfix rather than in your application.

  • 03

    Token refresh

    Where Google Calendar issues refresh tokens, Pathfix refreshes them as they expire, so connections keep working after the first authorization.

  • 04

    Authenticated API passthrough

    Your application sends Google Calendar API requests through Pathfix, which adds the connected user’s credentials before passing them on to Google Calendar.

You own the Google Calendar OAuth application and its credentials, and your code implements the API logic.

Passthrough endpoint for Google CalendarPOST https://labs.pathfix.com/oauth/method/googlecalendar/call

How to get started

  1. 1

    Create an OAuth app in Google Cloud Console

    Create OAuth credentials for your application and enable the Google Calendar API for your project.

  2. 2

    Copy your Client ID and Client Secret

    These belong to your Google project. Pathfix uses them to run the OAuth flow as your application.

  3. 3

    Choose your scopes

    Request only the Calendar access your integration needs. Google lists the available scopes in its Calendar API documentation.

  4. 4

    Add the credentials in Pathfix

    In your Pathfix account, add an application, select Google Calendar from the providers and enter the Client ID and Client Secret.

  5. 5

    Let your users authorize

    Add the connect step to your app. Each user signs in to Google Calendar and approves the scopes you requested.

  6. 6

    Call the Google Calendar API

    Send requests through the Pathfix passthrough API using the provider reference googlecalendar.

The Pathfix setup guide for Google APIs covers the redirect URI and consent screen settings Google requires.

Documentation

More Productivity & Collaboration integrations

Your Google Calendar OAuth app. Your users.

Start building with Pathfix Browse all integrations