0

I am writing an application that uploads videos to youtube from a desktop. It will be used only by me, so there is no issue with authentication or giving any access rights).

I found this post that shows me how to upload using C# How to upload Video to youtube using Google.Apis.YouTube.v3 and C#?

But this requires ClientId, Client Secret, and refresh token. I can get a refresh token by signing in to Google as explained here:

Youtube API single-user scenario with OAuth (uploading videos)

But how can I get the two other values? As it is for my own use, is there any more straightforward way to do this without the need to have a client ID and Client Secret?

mans
  • 17,104
  • 45
  • 172
  • 321

1 Answers1

0

You need to register your application on Google cloud console. And create desk top credentials. Or installed / native app credentials How to create Google Oauth2 installed application credentials.json.

Once you do that the google .net client library will handle authorization for you.

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449