I am very new to OAuth Arena and Google ApI but what I am trying to achieve here is very simple.
User Clicks on Google Connect button and my webservice should be able to get all the user Profile Info from Google server:
I have already written code to get AccessToken(I am yet to test it) but assuming that is working fine, now how should I ask Google API to give me user profile? I do see static function called Get Contacts in GoogleConsumer Class but I do not see any option to get profiledata. May be there is something that I am missing?
Here is my code using which i am getting accessToken:
IConsumerTokenManager tokenManager =
new LocalTokenManager(consumerKey,consumerSecret);
var googleConsumer =
new WebConsumer(GoogleConsumer.ServiceDescription, tokenManager);
var tokenResult = googleConsumer.ProcessUserAuthorization();
return tokenResult.AccessToken;
Now, how do I get user profile out of it?