Contacts Service

Contacts

Deprecated.Instead, use the People API advanced service

This service allows scripts to access and modify Google Contacts, both for individual contacts and for groups.

Classes

Name Brief description
Address Field Address field in a contact.
Company Field Company field in a Contact.
Contact A Contact contains the name, address, and various contact details of a contact.
Contact Group A ContactGroup is is a group of contacts.
Contacts App This class allows users to access their own Google Contacts and create, remove, and update contacts listed therein.
Custom Field A custom field in a Contact.
Date Field A date field in a Contact.
Email Field An email field in a Contact.
Extended Field An enum for extended contacts fields.
Field An enum for contacts fields.
Gender An enum for contact gender.
IMField An instant messaging field in a Contact.
Phone Field A phone number field in a Contact.
Priority An enum for contact priority.
Sensitivity An enum for contact sensitivity.
Url Field A URL field in a Contact.

Address Field

Methods

Method Return type Brief description
String Get the address for this field.
Object Gets the label for this field.
Boolean Gets whether this is the primary field value.
Address Field Sets the address of this field.
Address Field Sets this field to primary.
Address Field Sets the label of this field.
Address Field Sets the label of this field.

Company Field

Contact

Contact Group

Contacts App

Custom Field

Methods

Method Return type Brief description
Object Gets the label for this field.
Custom Field Sets the label of this field.

Date Field

Methods

Method Return type Brief description
Object Gets the label for this field.
Date Field Sets the label of this field.

Email Field

Methods

Method Return type Brief description
String Get the address for this field.
Object Gets the label for this field.
Boolean Gets whether this is the primary field value.
Email Field Sets the address of this field.
Email Field Sets this field to primary.
Email Field Sets the label of this field.
Email Field Sets the label of this field.

Extended Field

Field

Gender

IMField

Methods

Method Return type Brief description
String Get the address for this field.
Object Gets the label for this field.
Boolean Gets whether this is the primary field value.
IMField Sets the address of this field.
IMField Sets this field to primary.
IMField Sets the label of this field.
IMField Sets the label of this field.

Phone Field

Methods

Method Return type Brief description
Object Gets the label for this field.
Boolean Gets whether this is the primary field value.
Phone Field Sets this field to primary.
Phone Field Sets the label of this field.
Phone Field Sets the label of this field.

Priority

Sensitivity

Url Field

Methods

Method Return type Brief description
String Get the address for this field.
Object Gets the label for this field.
Boolean Gets whether this is the primary field value.
Url Field Sets the address of this field.
Url Field Sets this field to primary.
Url Field Sets the label of this field.
Url Field Sets the label of this field.
Create a Mobile Website
View Site in Mobile | Classic
Share by: