简体   繁体   English

有谁知道如何从Google API获取Google+用户的住所/工作地址(而非电子邮件)?

[英]Does anyone know how to get Google+ user's home/work address(not email) from Google API?

Currently we retrive user's profile by people.get API, and scopes are profile email https://www.googleapis.com/auth/plus.login . 目前,我们通过people.get API检索用户的个人资料,范围是profile email https://www.googleapis.com/auth/plus.login

But no matter user sets their home/work address as public, we still can't get address from reponse. 但是,无论用户将其家庭/工作地址设置为公共地址,我们仍然无法从响应中获取地址。

Did I use the wrong API or scopes? 我使用了错误的API或范围吗?

As documented for scopes. 至于文件的范围。

  • email gives access to "the user's Google account email address." email可访问“用户的Google帐户电子邮件地址”。

  • https://www.googleapis.com/auth/plus.profile.emails.read gives access to "the user's Google account email address, as well as any public, verified email addresses in the user's Google+ profile." https://www.googleapis.com/auth/plus.profile.emails.read可以访问“用户的Google帐户电子邮件地址,以及该用户的Google+个人资料中的所有公开的经过验证的电子邮件地址”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM