Lodol Docs

Google Contacts

API actions for the Google Contacts integration.

Google Contacts

Manage your Google Contacts.


Create contact

Create a new contact in Google Contacts.

Parameters

ParameterTypeRequiredDescription
given_namestringYesFirst name of the contact.
family_namestringNoLast name of the contact.
emailstringNoEmail address of the contact.
phonestringNoPhone number of the contact.

Response

"people/c987654321"

Delete contact

Delete a contact from Google Contacts.

Parameters

ParameterTypeRequiredDescription
resource_namestringYesThe ID of the contact to delete, for example people/c123456789

Response

true

Get contact

Look up a single contact by its ID.

Parameters

ParameterTypeRequiredDescription
resource_namestringYesThe ID of the contact, for example people/c123456789

Response

{
  "email": "john@example.com",
  "etag": "%EgUBAgkLNz4aBAECBQciDFJJREZyWjJIMDdBTT0=",
  "fullName": "John Smith",
  "phone": "+1234567890",
  "resourceName": "people/c123456789"
}

List contacts

List contacts from your Google account.

Parameters

ParameterTypeRequiredDescription
page_sizenumberNoMaximum number of contacts to return (default 25)

Response

[
  {
    "email": "john@example.com",
    "fullName": "John Smith",
    "phone": "+1234567890",
    "resourceName": "people/c123456789"
  }
]

Update contact

Update an existing contact in Google Contacts.

Parameters

ParameterTypeRequiredDescription
resource_namestringYesThe ID of the contact to update, for example people/c123456789
given_namestringNoNew first name of the contact
family_namestringNoNew last name of the contact
emailstringNoNew email address of the contact
phonestringNoNew phone number of the contact

Response

"people/c123456789"

On this page