方法:people.get()不返回名称 [英] Method: people.get() does not return names

查看:92
本文介绍了方法:people.get()不返回名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对API有疑问:

获取 https://people.googleapis.com/v1/ {resourceName = people/*}

GET https://people.googleapis.com/v1/{resourceName=people/*}

resourceName = people/account_id 并且personFields是'names'时,API仅在 account_id 具有Google+帐户时才返回名称与之相关联.对于没有关联Google+帐户的 account_id ,不会返回任何名称.

When the resourceName = people/account_id and the personFields is 'names' the API returns names only when the account_id has a Google+ account associated with it. For the account_id without associate Google+ account, no names are returned.

我的应用范围是:

  • https://www.googleapis.com/auth/userinfo.email
  • https://www.googleapis.com/auth/contacts
  • https://www.googleapis.com/auth/plus.login

这是预期的行为吗?没有Google+帐户,是否可以通过account_id获取帐户名?

Is this expected behaviour? Is it possible to get account name by account_id without Google+ account?

谢谢.

推荐答案

这是预期的行为.通常,在获取其他用户的数据时,您只会获取其公共数据.非G +用户没有公开个人资料,因此除非他们明确将其名称设置为公开,否则他们的名字不会公开.

This is expected behavior. In general when getting data on other users, you only get their public data. Non G+ users don't have a public profile and so their name is not public unless they have explicitly set their name to be public.

请参见 https://developers.google.com/people/#a_merged_view_of_people_information 有关应获取哪些数据的更多详细信息.

See https://developers.google.com/people/#a_merged_view_of_people_information for more details on what data you should get.

这篇关于方法:people.get()不返回名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆