我们如何让谷歌在目标c中登录用户年龄和genger。我公开了该用户的个人资料信息。 代码:
NSString *userId = user.userID; // For client-side use only!
NSString *idToken = user.authentication.idToken; // Safe to send to the server
NSString *fullName = user.profile.name;
NSString *givenName = user.profile.givenName;
NSString *familyName = user.profile.familyName;
NSString *email = user.profile.email;
我检查了下面的链接,但找不到任何解决方案。
https://developers.google.com/+/web/api/rest/latest/people/get
Retrieving date of birth and marital status with Google OAuth API