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

    List all contacts:

    Search for contacts:

    List all contact groups:

    List contacts in a given group:

    Get detailed information about a contact:

    Get the photo associated with a contact: