"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:

In[1]:=
Click for copyable input
Out[1]=

List calendars:

In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=

Get detailed information about a calendar:

In[4]:=
Click for copyable input
Out[4]=

List events in a calendar:

In[5]:=
Click for copyable input
Out[5]=

Sort events by start time:

In[6]:=
Click for copyable input
In[7]:=
Click for copyable input
Out[7]=

Search events using a query term:

In[8]:=
Click for copyable input
Out[8]=

Filter events by date:

In[9]:=
Click for copyable input
Out[9]=

Get detailed information about an event:

In[10]:=
Click for copyable input
Out[10]=

See Also

ServiceExecute  ▪  ServiceConnect  ▪  Twitter  ▪  Instagram  ▪  GoogleContacts