如何从Google People API中删除contact_groups

我们使用people api获取contact_groups列表。 虽然我们使用sync_token,但我们无法获取已删除的组。 但人们列表没有这个问题。 怎么解决?

service = Google::Apis::PeopleV1::PeopleServiceService.new service.client_options.application_name = 'xxx' service.authorization=Signet::OAuth2::Client.new(credentials) response = service.list_contact_groups(sync_token: xxxx-xxxx-xxxx)

Contactgroups.list返回联系人组列表, 联系人组包含联系人组元数据 ,其中包含已删除的参数。

如果已删除联系人组资源,则为True。 仅为包含同步令牌的contactGroups.list请求填充。

我不是100%确定我理解你的问题。

仅搜索已删除

无法仅搜索已删除的组。 您将不得不缓存完整的contactgroups.list方法并在本地扫描数据。

数据未返回

如果您没有看到已删除的组,并且您100%确定此用户可以访问此信息。 然后我建议通过api无法获得此信息这是一个常见问题,并非Google apis中的所有字段都可以向我们这样的第三方开发人员公开。 如果是这种情况,那么我建议您在论坛上发布一个问题,以便填充信息。