"GoogleContacts" (Service Connection)

Connect to your Google Contacts data using the Wolfram Language.

Connecting & Authenticating

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

Requests

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

    List Contacts

    Request:

    "ContactsList" a List of contacts and associated information

    "ContactsDataset" a Dataset of contacts and associated information

    Parameters:
  • MaxItems100number of elements to return
    "StartIndex"1start index
    "UpdatedDate"Nonelower bound on entry update dates
    "Query"Nonequery string
    "SortBy"Nonesorting order: "LastModified"
    "ShowDeleted"Falsewhether to include deleted contacts
    "GroupID"Nonegroup ID
  • Detailed Contact Information

    Request:

    "ContactInformation" detailed information about a specific contact

    Parameters:
  • "ContactID"(required)contact ID
  • Contact Photos

    Request:

    "ContactPhoto" photo associated with a specific contact

    Parameters:
  • "ContactID"(required)contact ID
  • Group Lists

    Request:

    "GroupList" a List of contact groups

    "GroupDataset" a Dataset of contact groups

    Parameters:
  • MaxItems100number of elements to return
    "StartIndex"1start index
    "UpdatedDate"Nonelower bound on entry update dates
    "Query"Nonequery string
    "SortBy"Nonesorting order: "LastModified"
    "ShowDeleted"Falsewhether to include deleted groups

Examples

Basic Examples  (1)

Create a new connection by launching an authentication dialog:

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

List all contacts:

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

Search for contacts:

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

List all contact groups:

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

List contacts in a given group:

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

Get detailed information about a contact:

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

Get the photo associated with a contact:

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

See Also

ServiceExecute  ▪  ServiceConnect  ▪  GooglePlus  ▪  GoogleCalendar