如何使用 Google Api Rest 检索好友个人资料数据?

How to retrieve friends profile data using the Google Api Rest?

我需要使用 google api 休息从朋友的个人资料数据中检索。我已经阅读了 google + api 和 list method is deprecated 的文档。现在 google 建议使用联系人 api 来检索朋友数据。但是,此方法返回的数据是关于联系信息的。我需要有关配置文件 google plus 的信息。 (电子邮件、照片、姓名)。

顺便说一句,google加api有get方法,这个根据userId获取google+profile的信息。如果我可以得到我所有 userId 的朋友的列表,也许使用这种方法我可以检索有关配置文件 google plus.

的信息

如何从 google plus 个人资料中检索好友信息?

如果您有 google 帐户 ID,则可以使用 Google 人 API 检索个人资料信息。请参阅文档 Get the person for a Google Account.

中的示例

此外,当 People API ListConnections 方法 returns 联系人时,它还会 return 个人资料链接到联系人。

如果您特别需要一种方法来列出所有 G+ 好友,很遗憾,由于 G+ 列表方法已弃用,因此无法获取该数据。