我遵循了该示例: https ://developers.google.com/identity/sign-in/web/people
并可以成功登录谷歌。我可以检索这些数据:
profile.getId(),
profile.getName(),
profile.getGivenName(),
profile.getEmail(),
profile.getImageUrl()
但是..我怎样才能检索用户的性别?
我遵循了该示例: https ://developers.google.com/identity/sign-in/web/people
并可以成功登录谷歌。我可以检索这些数据:
profile.getId(),
profile.getName(),
profile.getGivenName(),
profile.getEmail(),
profile.getImageUrl()
但是..我怎样才能检索用户的性别?
您可以使用检索性别 Google.Apis.Oauth2.v2.Data.Userinfoplus.Gender
更多信息请点击这里