title: .NET gmail API Authentication (without user interaction)
body: <p>I am trying to authneticate gmail api using c# console application. 
  I am using.net sdk of Google api and the code i am using to authorize the api is as follows : </p>
  
  <pre><code>UserCredential credential = await GoogleWebAuthorizationBroker.AuthorizeAsync(
  new ClientSecrets
  {
      ClientId = "clientId",
      ClientSecret = "clientsecret"
  },
   new[] {  GmailService.Scope.GmailModify },
  "user",
   CancellationToken.None, null);
  </code></pre>
  
  <p>But the above code open a browser window to ask for permission to access the service, I need to avoid this authentication activity as I need to schedule ".exe" file of the project on Azure </p>