0

how to get email id using oauth

I'm trying to get user profile information by using following code. I'm using scribe to get the information. I'm able to get familyName and givenName...etc but it is not returning me the email id.

Code:

OAuthRequest request = new OAuthRequest(Verb.GET,"https://social.yahooapis.com/v1/me/guid?format=xml"); service.signRequest(accessToken, request); request.addHeader("realm", "yahooapis.com"); Response response = request.send();

Response I got: {"profile":{"guid":"CGGT5LNT7NXGFK64QW7FQN5UQM","ageCategory":"A","familyName":"gto","givenName":"CTSDemo","image":{"height":192,"imageUrl":"https://s.yimg.com/dh/ap/social/profile/profile_b192.png","size":"192x192","width":192},"intl":"us","jurisdiction":"us","lang":"en-US","location":"Bangalore","memberSince":"2014-08-03T08:23:27Z","nickname":"CTSDemo","notStored":false,"nux":"3","profileMode":"PUBLIC","profileStatus":"ACTIVE","profileUrl":"http://profile.yahoo.com/CGGT5LNT7NXGFK64QW7FQN5UQM","updated":"2014-08-29T12:00:44Z","isConnected":false,"profileHidden":false,"bdRestricted":true,"profilePermission":"PUBLIC","uri":"https://social.yahooapis.com/v1/user/CGGT5LNT7NXGFK64QW7FQN5UQM/profile","cache":true}}

Please help

by
0 Replies

Recent Posts

in OAuth General Discussion YDN SDKs