Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Option to get the contact entries updated after a specific time NOT given in Google People API

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?

like image 284
Ranjani Avatar asked May 04 '21 15:05

Ranjani


People also ask

How do I create a contact in Google People API?

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.

Are You Ready to use the People API to manage contacts?

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.

Can I get a picture of a user’s contact book using Google people?

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.

Is the Google Contacts API dead?

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.


1 Answers

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

like image 175
marmor Avatar answered Oct 16 '22 06:10

marmor