【发布时间】:2018-11-18 20:05:03
【问题描述】:
我有一个关于 API 的问题:
GET https://people.googleapis.com/v1/{resourceName=people/*}
当 resourceName = people/account_id 且 personFields 为“names”时,API 仅在 account_id 拥有 Google+ 帐户时返回名称与之相关联。对于没有关联 Google+ 帐户的 account_id,不返回任何名称。
我的申请范围是:
- https://www.googleapis.com/auth/userinfo.email
- https://www.googleapis.com/auth/contacts
- https://www.googleapis.com/auth/plus.login
这是预期的行为吗?没有 Google+ 帐号是否可以通过 account_id 获取帐号名称?
提前谢谢你。
【问题讨论】:
标签: google-api google-api-js-client google-people-api