本文介绍了使用简单的 ASP.NET 应用程序和 oAuth 2.0 将视频上传到 youtube的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了大量有关如何使用 Gdata API 将视频文件上传到 youtube 的示例,但没有一个非常清晰.有没有关于如何做到这一点的简单清晰的例子?基本上我有一个 asp.net 页面,登录到 youtube 链接,当用户点击链接时,他会被提示输入他的凭据.成功登录后,他将被重定向到 asp.net 页面,在那里他选择自己的视频文件并将其上传到 youtube.

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.

推荐答案

GData 已在 3 周前关闭.您必须使用数据 api v3.下面是一些示例代码:https://developers.google.com/youtube/v3/code_samples/dotnet#upload_a_video

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

这篇关于使用简单的 ASP.NET 应用程序和 oAuth 2.0 将视频上传到 youtube的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 04:44