使用 OpenID 和 OAuth 的 youtube API(或 gdata API)的 c# 示例
是否有使用 OpenID 和 OAuth 的 youtube API(或 gdata API)的 c# 代码示例?
或者也许包含代码示例的帖子/文章 将
dotnetoauth 与 youtube API 结合使用的代码示例也很棒
Are there any c# code samples of youtube API (or gdata API) using OpenID and OAuth ?
Or maybe a post / article with code examples
Code samples of using dotnetoauth with the youtube API would be great too
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
过去 2 周我刚刚完成了与 YouTube 的 Oauth 连接以获得访问播放列表的授权,我可以向您发送大量有帮助的课程。我可以在这里发布部分内容,但还有更多内容可以让我发布!
虽然我现在可以访问私人源,但无法使用 OAuth 上传视频。谷歌文档说它有效,但最后一次实际发布的 SDK 是去年 2 月。您可以下载源代码并编译它,但我仍然遇到问题并构建了自己的类。我最终求助于 ClientLogin 来上传视频,但使用 OAuth 来完成其他一切...
请给我留言,其中包含您的电子邮件地址以及您想要实现的目标,我将向您发送我现在编写的课程。
下面是一些代码:首先是一个执行 OAuth 签名和其他一些内容(例如标头创建)的类:
然后,我使用这是一个包装类来帮助使调用更容易:
Having just spent the last 2 weeks getting an Oauth connection to YouTube to get an authorization to access playlists, I can send you a load of classes that will help. I can post sections here, but theres more than It will let me post!
While I can now gain access to private feeds, I cant get the upload of videos to work using OAuth. The google docs say it works, but the last actual posted SDK was Feb last year. You can download the source code and compile it, but I still had problems and built my own classes. I have ended up resorting to ClientLogin for the uploads of video, but OAuth for everything else...
Drop me a note with your email address and what you are trying to acheive and i'll send you the classes i've now written.
Heres some code: First A class that does the OAuth Signing and some other stuff like header creation:
Then, I consume this is a wrapper class to help making the calls easier: