Reputation: 1025
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?
Upvotes: 6
Views: 420
Reputation: 28179
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
Upvotes: 3