Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经使用 Google Contact API 检索了我的所有联系人。现在,我想使用此People API GET链接中提到的 get 请求获取所有这些联系人的 google 个人资料信息。但我在发出请求的响应中看不到任何 id。
Contacts API 和 People API 是独立的 API,并不意味着可以相互操作。
也就是说,执行此操作的反向工程方法是获取 Contacts API 联系人 ID,解析该十六进制值,将其转换为十进制,并为其添加“c”前缀,这将成为 People API 人员资源 ID。
例如,如果 Contacts API 联系人 ID 是100,那么 People API 人员 ID 将是c256。当您以这种方式从 People API 获取联系人时,它将具有已加入的个人资料信息(如果存在)。
100
c256