Q:

Retrieve user detail from google - It should be simple right?

I already have the user authenticated using the browser. Now I want to send this token to the server and the server has to get the user details like first name, last name and email address. 
I've done this with Facebook recently and it was simple because there was an easy to use library for it. 
I can't seem to figure out how to use the Google library. I am using this library https://code.google.com/p/google-api-dotnet-client/ which interacts with the google API. 
Any tips or examples on the internets which could show me how to do this? I just know it's something really simple and  that I might be going about this entirely the wrong way.. 
I need the Stack wisdom!!! Feed me!

A:

var tokeninfoUri = "https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=" + accessToken;

var hc = new HttpClient();

var webResponse = hc.GetAsync(tokeninfoUri).Result;

This returns JSON similar to this
public string Expires_In { get; set; }
public string Audience { get; set; }

Then I call this API to get the user info
const string userInfoUrl = "https://www.googleapis.com/oauth2/v1/userinfo";
var hc = new HttpClient();
hc.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", authToken);
var webResponse = hc.GetAsync(userInfoUrl).Result;

So I didn't need any library to help me. But it would be nice if there was a library which done all this for me. It took me a few hours to figure this out.

