Youtube - 如何使用 PHP、JavaScript 和 jQuery 从用户频道获取所有视频?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7869839/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Youtube - How to get all videos from user channel with PHP, JavaScript and jQuery?
提问by chris
Maybe I am over looking something, but from all the API docs I've looked at theres no mention that I have found as of yet or examples to show if youtube offers channel specific feeds
也许我正在寻找一些东西,但是从我看过的所有 API 文档中都没有提到我迄今为止发现的内容或显示 youtube 是否提供特定频道提要的示例
what I want to do ultimately is with a little bit of php and javascript get all the videos for this particular user
我最终想要做的是使用一点点 php 和 javascript 获取这个特定用户的所有视频
http://www.youtube.com/user/stevesattlerfilms
http://www.youtube.com/user/stevesattlerfilms
and then list them out on his site accordingly. So seeing as I am having troubles finding my answers I decided to come here, I figure this may be a repeat question somehow somewhere and if it is I am sorry. But if anyone can point me in the right direction that'd be helpful enough for me. Thanks.
然后相应地在他的网站上列出它们。所以看到我在寻找答案时遇到了麻烦,我决定来这里,我想这可能是某个地方的重复问题,如果是,我很抱歉。但是,如果有人能指出我正确的方向,那对我来说就足够了。谢谢。
回答by middus
I would request a video feedand make use of the author parameter. This should give you all the videos of a specific user.
我会请求一个视频源并使用作者参数。这应该为您提供特定用户的所有视频。
In your example: http://gdata.youtube.com/feeds/api/videos?author=stevesattlerfilms
在您的示例中:http: //gdata.youtube.com/feeds/api/videos?author=stevesattlerfilms