我正在尝试从 Google 帐户中检索性别和生日。我正在通过执行以下操作在 Google Playground ( https://developers.google.com/oauthplayground/ ) 中尝试:
我授权所有 Google OAuth2 API V2 范围(https://www.googleapis.com/auth/plus.login、https://www.googleapis.com/auth/plus.me、https://www.googleapis.com /auth/userinfo.email,https://www.googleapis.com/auth/userinfo.profile)。然后我生成访问令牌,最后我向https://www.googleapis.com/userinfo/v2/me发出请求。
我得到的信息是:family_name、name、picture、locale、email、 given_name、id和verify_email。我尝试了很多事情,但我无法获得性别或生日。
注意:我使用的帐户的性别和生日都标记为公开(在https://aboutme.google.com中检查)