有什么方法可以从 google contact api v3 检索 account_id 以向 google people api 发出 get 请求吗?

Moh*_*hit 0 google-contacts-api google-people-api

我已使用 Google Contact API 检索了我的所有联系人。现在,我想使用此People API GET链接中提到的 get 请求获取所有这些联系人的 Google 个人资料信息。但我在响应中没有看到任何发出请求的 ID。

Bla*_*are 8

联系人 API 和人员 API 是独立的 API,并不意味着彼此可以互操作。

也就是说,执行此操作的逆向工程方法是获取 Contacts API 联系人 ID,解析该十六进制值,将其转换为十进制,并向其添加“c”前缀,这将成为 People API 人员资源 ID。

例如,如果 Contacts API 联系人 ID 为100,那么 People API 人员 ID 将为c256。当您以这种方式从 People API 获取联系人时,它将包含已连接的个人资料信息(如果存在)。