使用GTM OAuth2 for iOS检索用户电子邮件

我已经使用GTM OAuth 2库成功实现了身份validation。 但是现在我想拥有用户的电子邮件ID。 我应该如何继续。 我知道我必须在这里打个电话:

- (void)viewController:(GTMOAuth2ViewControllerTouch *)viewController finishedWithAuth:(GTMOAuth2Authentication *)auth error:(NSError *)error { if (error != nil) { NSLog(@"SIGN IN ERROR : %@", error.description); // Authentication failed } else { // Authentication succeeded } 

}

使用gtm-oauth2loginGoogle服务时,用户的电子邮件地址在身份validation对象的userEmail属性中login后可用。