是否可以通过Google oAuth2获取电话号码? [英] Is it possible to get phone number via Google oAuth2?

查看:88
本文介绍了是否可以通过Google oAuth2获取电话号码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据OpenID规范, http://openid.net/specs/openid-attribute-properties-list-1_0-01.html ,但是Google OAuth2文档中没有提及它.有人有经验吗?

According to OpenID specification it should be possible http://openid.net/specs/openid-attribute-properties-list-1_0-01.html however there is no mention of it in Google OAuth2 Documentation. Anyone have experience with that?

推荐答案

我们目前不提供电话号码作为员工/获取Google+ API的一部分.

We don't currently offer the phone number as part of our people/get Google+ API.

https://developers.google.com/+/api/latest/people

此api中属性的可见性由用户在G +个人资料设置中控制.

Visibility of attributes in this api are controlled by the user in G+ profile settings.

userinfo api特定于OpenId,可能无法获取此字段.

The userinfo api is specific to OpenId and probably won't get this field.

https://developers.google.com/accounts/docs/OAuth2Login#userinfocall

它可能会在将来发生,我们愿意接受要求.

It may happen in the future and we're open to requests.

davep

这篇关于是否可以通过Google oAuth2获取电话号码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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