Update Google Contacts



Mar 28, 2019 Tap your Google account in the To list. Select your Google account in the list of accounts you can move your contacts to. This will ensure that they reappear when you sign back in with your Google account, and that they can be accessed from contacts.google.com. Tap 'Accounts' or select the Google account name if it appears directly. This is usually designated with the Google 'G' logo. Select 'Sync Account' after selecting Google from the accounts list. Tap 'Sync Contacts' and 'Sync Calendar' to disable the Contact and Calendar sync with Google.

After you've completed the steps in Get Ready to Use the People API you are ready to read and manage contacts.

The following code samples demonstrate how to send a few simple requests:

  • List the user's contacts.
  • Search the user's contacts.
  • Create a new contact.
  • Update an existing contact.
  • Delete an existing contact.
  • Batch create new contacts.
  • Batch update existing contacts.
  • Batch delete existing contacts.

For a full list of methods, see the referencedocumentation.

Only contact based people can be modified. Profile based people read using resource name'people/me'or by an account ID can not be modified.

List the user's contacts

To get a list ofpeople in the user's contacts, use the following code:

You can get a list of only changed contacts by setting requestSyncToken to true in the request, and then using the syncToken returned in the response in the syncToken param for the next request. Sync tokens expire after 7 days, and will result in a 410 error. To handle that error, clients should send a request without the syncTokenUpdate google maps to get the full list of contacts.

Excel Vba: Update Google Contacts

Search the user's contacts

To search all of the user's contacts, use the following code:

Protocol

Java

Search does a prefix match of the query with the fields on a person. For example, a person with name 'foo name' matches queries such as 'f', 'fo', 'foo', 'foo n', 'nam', etc., but not 'oo n'.

Update Google Contacts

Create a new contact

To create a new contact, use the following code:

Update an existing contact

To update an existing contact, you mustinclude the person.metadata.sources.etag field in the person for the contact to beupdated to make sure the contact has not changed since your last read. Use the following code:

Protocol

Java

Delete an existing contact

To delete an existing contact, use the following code:

Batch create new contacts

To batch create new contacts, use the following code:

Protocol

Java

Batch mutate requests are limited to 10 parallel requests per user.

Batch update existing contacts

Update google contacts from outlook

To update an existing contact, you mustinclude the person.metadata.sources.etag field in each person for the contact to beupdated to make sure the contact has not changed since your last read. Use the following code:

Update Google Contacts Batch mutate requests are limited to 10 parallel requests per user.

Batch delete existing contacts

To batch delete existing contacts, use the following code:

Protocol

Java

Batch mutate requests are limited to 10 parallel requests per user.