简体   繁体   English

如何使用Java中的Google+ API从Google个人资料获取手机号码和出生日期?

[英]How to get the mobile number and date of birth from google profile using Google+ api in java?

I have used the G+ api and also got the use profile but I am not able to fetch the mobile number and date of birth. 我已经使用了G + API,还获得了使用配置文件,但无法获取手机号码和出生日期。 The data that I got in response consists of email,display name,given name,gender,profile image. 我得到的响应数据包括电子邮件,显示名称,给定名称,性别,个人资料图像。 If any one have got mobile number,date of birth then please guide me. 如果有人有手机号码,生日,请引导我。

Phone number and birthday are not available in the data returned from the Google+ API. Google+ API 返回数据中没有电话号码和生日。 You're best option is probably to ask users to manually enter the info. 您最好的选择可能是要求用户手动输入信息。

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

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