google api - Retrieve User email using GTM OAuth2 for iOS -


i have implemented authentication using gtm oauth 2 library. want have email id of user. how should proceed. know have call in here :-

- (void)viewcontroller:(gtmoauth2viewcontrollertouch *)viewcontroller   finishedwithauth:(gtmoauth2authentication *)auth              error:(nserror *)error { if (error != nil) {      nslog(@"sign in error : %@", error.description);     // authentication failed } else {     // authentication succeeded } 

}

when signing in google services gtm-oauth2, user's email address available after sign-in in auth object's useremail property.


Comments

Popular posts from this blog

Glib GIOChannel -

jsp - java.sql.SQLException: [Microsoft][ODBC Microsoft Access > Driver] Too few parameters. Expected 1 -

delphi - When I encode/decode SMS PDU (GSM 7 Bit) user data, do I need prepend the UDH first? -