upload video to youtube using a simple ASP.NET app

2019-03-05 23:30发布

问题:

I've been reading plenty of here and there examples on how to use the Gdata API to upload a video file to youtube, but none are crystal clear. Is there a simple clear example on how to do this? Basically I have an asp.net page, with a login to youtube link, when the user clicks the link he will be prompted to enter his credentials. After successful login, he will be redirected to the asp.net page where he selects his video file and uploads it to youtube.

回答1:

GData was turned off 3 weeks ago. You have to use the data api v3. Here's some example code: https://developers.google.com/youtube/v3/code_samples/dotnet#upload_a_video