4

I am trying to set up and run the YouTube Data API (.NET) code samples (my_uploads class, in particular) in the Visual Studio 2010, however, I am constantly facing errors.

Apparently, the code itself already contains such mistakes like misspelled references, e.g., using Google.Apis.Youtube.v3; (should be YouTube not Youtube) and outdated methods like Fetch() (alternative is Execute()). It is also missing lots of libraries even though I followed the getting started guides very closely:

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: Precondition failed.: !string.IsNullOrEmpty(authorization.RefreshToken).

Thanks.

Arthur
  • 223
  • 2
  • 16

0 Answers0