title: Access User Info using Google APIs for .NET
body: <p>I'm using the Google APIs Preview (1.7.0) to authorize a user via OAuth2. I've been following the <a href="https://code.google.com/p/google-api-dotnet-client/wiki/OAuth2#Web_Applications_%28using_ASP.NET_MVC%29" rel="nofollow noreferrer">sample MVC code</a>. This is my implementation of <code>FlowMetadata</code>:</p>
  
  <pre><code>private static readonly IAuthorizationCodeFlow flow = ...; // Implementation of tokens
  
  public static async Task&lt;Google.Apis.Auth.OAuth2.Web.AuthorizationCodeWebApp.AuthResult&gt; GetCredentials(Controller controller, CancellationToken cancellationToken) {
      var result = await new AuthorizationCodeMvcApp(controller, new Models.Generic.AppFlowMetadata()).AuthorizeAsync(cancellationToken);
      if (result.Credential != null)
      {
           // Struggling here. How do I make a request to get the e-mail address?
      }
  }
  </code></pre>
  
  <p>I now have a valid <code>UserCredential</code> and therefore Access Token, but I cannot find any managed APIs for accessing the user info. I did find <a href="https://stackoverflow.com/questions/7130648/get-user-info-via-google-api">this question</a>, but this appears to assume I am just making raw requests, rather than using the official library.</p>
  
  <p>How can I get the user's e-mail address?</p>