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 in a contact. |
| Company field in a Contact. |
| A Contact contains the name, address, and various contact details of a contact. |
| A ContactGroup is is a group of contacts. |
| This class allows users to access their own Google Contacts and create, remove, and update contacts listed therein. |
| A custom field in a Contact. |
| A date field in a Contact. |
| An email field in a Contact. |
| An enum for extended contacts fields. |
| An enum for contacts fields. |
| An enum for contact gender. |
| An instant messaging field in a Contact. |
| A phone number field in a Contact. |
| An enum for contact priority. |
| An enum for contact sensitivity. |
| A URL field in a Contact. |
AddressField
Methods
Method | Return type | Brief description |
---|---|---|
getAddress() | String | Get the address for this field. |
getLabel() | Object | Gets the label for this field. |
isPrimary() | Boolean | Gets whether this is the primary field value. |
setAddress(address) |
| Sets the address of this field. |
setAsPrimary() |
| Sets this field to primary. |
setLabel(field) |
| Sets the label of this field. |
setLabel(label) |
| Sets the label of this field. |
CompanyField
Contact
ContactGroup
ContactsApp
CustomField
Methods
Method | Return type | Brief description |
---|---|---|
getLabel() | Object | Gets the label for this field. |
setLabel(label) |
| Sets the label of this field. |
DateField
Methods
Method | Return type | Brief description |
---|---|---|
getLabel() | Object | Gets the label for this field. |
setLabel(label) |
| Sets the label of this field. |
EmailField
Methods
Method | Return type | Brief description |
---|---|---|
getAddress() | String | Get the address for this field. |
getLabel() | Object | Gets the label for this field. |
isPrimary() | Boolean | Gets whether this is the primary field value. |
setAddress(address) |
| Sets the address of this field. |
setAsPrimary() |
| Sets this field to primary. |
setLabel(field) |
| Sets the label of this field. |
setLabel(label) |
| Sets the label of this field. |
ExtendedField
Field
Gender
IMField
Methods
Method | Return type | Brief description |
---|---|---|
getAddress() | String | Get the address for this field. |
getLabel() | Object | Gets the label for this field. |
isPrimary() | Boolean | Gets whether this is the primary field value. |
setAddress(address) |
| Sets the address of this field. |
setAsPrimary() |
| Sets this field to primary. |
setLabel(field) |
| Sets the label of this field. |
setLabel(label) |
| Sets the label of this field. |
PhoneField
Methods
Method | Return type | Brief description |
---|---|---|
getLabel() | Object | Gets the label for this field. |
isPrimary() | Boolean | Gets whether this is the primary field value. |
setAsPrimary() |
| Sets this field to primary. |
setLabel(field) |
| Sets the label of this field. |
setLabel(label) |
| Sets the label of this field. |
Priority
Sensitivity
UrlField
Methods
Method | Return type | Brief description |
---|---|---|
getAddress() | String | Get the address for this field. |
getLabel() | Object | Gets the label for this field. |
isPrimary() | Boolean | Gets whether this is the primary field value. |
setAddress(address) |
| Sets the address of this field. |
setAsPrimary() |
| Sets this field to primary. |
setLabel(field) |
| Sets the label of this field. |
setLabel(label) |
| Sets the label of this field. |