【发布时间】:2013-11-05 21:37:09
【问题描述】:
我正在尝试通过 Google OAuth api 检索出生日期和婚姻状况。通过将范围设置为 https://www.googleapis.com/auth/userinfo.profile 和 https://www.googleapis.com/auth/userinfo.email ,我得到了下面提到的信息。请求地址为https://www.googleapis.com/oauth2/v2/userinfo
{
"id": "my_id",
"email": "test@gmail.com",
"verified_email": true,
"name": "full_name",
"given_name": "first_name",
"family_name": "last_name",
"link": "https://plus.google.com/xxxxxxx",
"picture": "https://xxxxxxxxx/photo.jpg",
"gender": "male",
"locale": "en"
}
我的个人资料中设置了生日和婚姻状况,但我无法获取此信息。可能是什么问题?
【问题讨论】:
标签: grails oauth oauth-2.0 google-oauth