We use Google Contacts API to get contact entries that are updated after a specific time to keep an updated copy of the contacts on our end.
In Google Contacts API, there is an option to get the contact entries updated after a specific time using "updated-min" query parameter.
GET https://www.google.com/m8/feeds/contacts/default/full?updated-min=2007-03-16T00:00:00
There is no option specified in Google People API for such a case in Google People documentation. Am I missing anything or is this feature not given?
How to Create a Contact via the Google People API The Google People API offers two options to create contacts. The standard way is with the people.createContact method. When invoked, you can define a wide range of details for the contact, such as their name, email address, phone number, job title, and more.
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.
Unfortunately, the Google People API has no such service, meaning that if you want to keep an up-to-date picture of your user’s contact book, you’ll need to build your own local copy of the user’s contact data and regularly poll the People API to compare the returned data with your local version.
Google has announced that the Google Contacts API is officially deprecated and will sunset on June 15, 2021. This means that if you’ve built an integration with the Google Contacts API, you will need to find a new solution to access data from your user’s Google Contacts account.
If you're trying to implement an incremental sync where you want all the contacts that were changed (or created/deleted) since the last sync time, then instead of using a time object you can use syncToken
.
It works like this - you first call people.connections.list
without a syncToken
, and with requestSyncToken
true. The last response page will include a field syncToken
which you can send in future people.connections.list
calls to get only the resources changed since the last request.
See this: https://developers.google.com/people/api/rest/v1/people.connections/list#query-parameters
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With