title: YouTube Data API (.NET) Code Samples Do Not Work
body: <p>I am trying to set up and run the YouTube Data API (<strong>.NET</strong>) code samples (<a href="https://developers.google.com/youtube/v3/code_samples/dotnet#retrieve_my_uploads" rel="nofollow"><code>my_uploads</code></a> class, in particular) in the Visual Studio 2010, however, I am constantly facing errors.</p>
  
  <p>Apparently, the code itself already contains such mistakes like misspelled references, e.g., <code>using Google.Apis.Youtube.v3;</code> (should be <code>YouTube</code> not <code>Youtube</code>) and outdated methods like <code>Fetch()</code> (alternative is <code>Execute()</code>).
  It is also missing lots of libraries even though I followed the getting started guides very closely:</p>
  
  <ul>
  <li><a href="https://code.google.com/p/google-api-dotnet-client/wiki/GettingStarted" rel="nofollow">https://code.google.com/p/google-api-dotnet-client/wiki/GettingStarted</a></li>
  <li><a href="https://developers.google.com/api-client-library/dotnet/apis/youtube/v3" rel="nofollow">https://developers.google.com/api-client-library/dotnet/apis/youtube/v3</a></li>
  </ul>
  
  <p><strong>Nevertheless, the main problem I am facing is related to authentication and authorisation (I think) and I do not know how to fix it.
  Every time I try to run the console application and enter the right credentials, it throws me an error: <code>Precondition failed.: !string.IsNullOrEmpty(authorization.RefreshToken)</code>.</strong></p>
  
  <p>Thanks.</p>