【发布时间】:2021-05-26 14:51:43
【问题描述】:
我正在将我们的代码从 Google Contacts API 迁移到 Google People API,因为 Google Contacts API 很快就会被弃用,但我注意到新的 People API 很容易与旧的 Contacts API 进行比较。
例如,我们在下面的代码中使用旧的联系人 API 在特定的联系人组中搜索,并通过传入 Group 和 StartDate 参数在特定日期后更新,但现在我们不能这样做使用新的 People API 进行相同的查询。
我的问题是在新的 People API 中,我们有什么方法可以搜索特定组中的联系人并仅获取在特定日期之后更新的联系人?
我看到一个问题使用syncToken,但我认为这对我们来说不是一个好的解决方案。
Option to get the contact entries updated after a specific time NOT given in Google People API
GData.Contacts.ContactsFeed feed = service.Query(
new GData.Contacts.ContactsQuery("https://www.google.com/m8/feeds/contacts/default/full/")
{
OAuthRequestorId = employeeUserEmail,
Group = [contact group url],
NumberToRetrieve = FetchSize,
StartIndex = 1,
StartDate = [a date that only get contacts were modified after it],
});
【问题讨论】:
标签: google-api google-people-api