从Google通讯录中获取Google+ ID

gwe*_*all 1 google-api google-contacts-api google-plus

我正在使用Google通讯录API提取用户的联系人电子邮件地址和姓名.有没有办法获得这些人的Google+ ID?

Vic*_*zel 6

profile如果G +个人资料与联系人条目相关联,则联系人API将返回链接.

这是一个例子:

<gContact:website href='http://www.google.com/profiles/1234567890' rel='profile'/>
Run Code Online (Sandbox Code Playgroud)

在该元素的href属性,1234567890是个人标识符能在比赛id相关的领域的人的资源people.list在Google+上的人的API.

请注意,profile不保证链接可以返回联系人条目.如果联系人尚未与Google+个人资料相关联,则会发生这种情况.