title: Use offline authorization in google api upload video to youtube call
body: <p>I am looking at the .net sample code here : (<a href="https://developers.google.com/youtube/v3/code_samples/dotnet#upload_a_video" rel="nofollow">Upload a video</a>) to upload a video to YouTube using C# using the Google Apis .NET library.</p>
  
  <p>The code though redirects you to the google page to get authorization for the call, however I have already done the authorization </p>
  
  <pre><code>credential = await GoogleWebAuthorizationBroker.AuthorizeAsync(
  GoogleClientSecrets.Load(stream).Secrets,
  // This OAuth 2.0 access scope allows an application to upload files to the
  // authenticated user's YouTube channel, but doesn't allow other types of access.
  new[] {
      YouTubeService.Scope.YoutubeUpload
  },
      "user",
  CancellationToken.None
  </code></pre>
  
  <p>Can I bypass this authorization and use the code I have already got, the authorization is based on my own YouTube account, not a visitor to the websites YouTube account, and its got offline access type so the token can keep been used over and over again without having to do the authorization each time.</p>