"GoogleCalendar" (Service Connection)

Connect to your Google Calendar data using the Wolfram Language.

Connecting & Authenticating

ServiceConnect["GoogleCalendar"] creates a connection to the Google Calendar API. If a previously saved connection can be found, it will be used; otherwise, a new authentication request will be launched.

Requests

ServiceExecute["GoogleCalendar","request",params] sends a request to the Google Calendar API, using parameters params. The following gives possible requests.

List Calendars

Request:

"CalendarList" a List of calendars of authenticated user

"CalendarDataset" a Dataset of calendars of authenticated user

Parameters:
  • MaxItems100number of elements to return
    "ShowHidden"Falsewhether to show hidden entries
    "ShowDeleted"Falsewhether to include deleted calendar list entries in the result
    "Query"None
  • query string
  • Detailed Calendar Information

    Request:

    "CalendarInformation" detailed information about a specific calendar

    Parameters:
  • "CalendarID""primary"calendar ID (default is user's primary calendar)
  • List Events

    Request:

    "EventList" a List of events in a given calendar

    "EventDataset" a Dataset of events in a given calendar

    Parameters:
  • "CalendarID""primary"calendar ID (default is user's primary calendar)
    "MaxAttendees"Nonemaximum number of attendees to return
    MaxItems250number of elements to return
    "StartIndex"1index number of first result to return
    "ShowHiddenInvitations"Falsewhether to include hidden invitations
    "ShowDeleted"Falsewhether to include deleted events
    "SortBy"Nonesort order for results: "StartTime" (only when "SingleEvents" is set to True) or "Updated"
    "Query"Nonequery string
    "ExpandRecurringEvents"Falsewhether to return only event instances, but not recurring events themselves
    "Date"Nonedate or date range to filter events by
    "UpdatedMin"Nonelower bound for the last modification time of events
  • Detailed Event Information

    Request:

    "EventInformation" detailed information about a specific event

    Parameters:
  • "CalendarID""primary"calendar ID (default is user's primary calendar)
    "EventID"(required)event ID
    "MaxAttendees"Nonemaximum number of attendees to return
  • Examples

    Basic Examples  (1)

    Create a new connection by launching an authentication dialog:

    List calendars:

    Get detailed information about a calendar:

    List events in a calendar:

    Sort events by start time:

    Search events using a query term:

    Filter events by date:

    Get detailed information about an event: