从Google通讯录获取Google+ ID [英] Get Google+ ID from Google Contacts
问题描述
我使用Google通讯录API提取用户的联系人电子邮件地址和姓名。
有没有办法让这些人的Google+ ID得到?
I'm pulling a user's contacts email addresses and names using the Google Contacts API. Is there a way to get those people's Google+ IDs as well?
推荐答案
联系人API将返回一个 profile
链接,如果一个G +配置文件与联系人条目链接在一起。
The contacts API will return a profile
link if a G+ profile is linked with the contact entry.
以下是一个示例: b
Here's an example:
<gContact:website href='http://www.google.com/profiles/1234567890' rel='profile'/>
在该元素的 href
属性中, 1234567890
是与相关 id 字段匹配的人员标识符.com / + / api / latest / people人员资源来自Google+ People API的 people.list
。
In that element's href
attribute, 1234567890
is the person identifier that would match the id
field of the relevant person resource from people.list
of the Google+ People API.
请注意,个人资料
连结不保证会为联络人条目回来。这发生在联系人未链接到Google+个人资料时。
Note that the profile
link is not guaranteed to come back for a contact entry. This occurs when the contact has not been linked to a Google+ profile.
这篇关于从Google通讯录获取Google+ ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!