YouTube javascript最受欢迎的视频API [英] Youtube javascript most popular videos API
问题描述
我正在尝试在我的应用程序中实现Youtube最受欢迎的视频api.
I am trying to implement Youtube's most popular videos api in my application.
当我使用Ajax调用获取数据时,它缺少"rel":"next" 标记,这对于识别是否有更多视频非常重要. "openSearch $ totalResults" 也没有提供任何可靠的信息.
When I fetch data using ajax call, it is missing the "rel": "next" tag which is very important in identifying whether there are more videos or not. "openSearch$totalResults" also does not give any reliable information.
我已经阅读了文档,他们没有提到与该API返回多少总结果有关的任何内容.
I have read the documentation and they have not mentioned anything related to how many total results will this API return.
我的ajax调用URL格式如下:
My ajax call URL format is as under :
http://gdata.youtube.com/feeds/api /standardfeeds/most_popular?start-index = '+ StartIndex +'& max-results ='+ EndIndex +'& time = all_time& safeSearch = none& orderby = published& v = 2& alt = json&回调=?
http://gdata.youtube.com/feeds/api/standardfeeds/most_popular?start-index='+StartIndex+'&max-results='+EndIndex+'&time=all_time&safeSearch=none&orderby=published&v=2&alt=json&callback=?
有人可以帮助我,告诉我是我做错了还是其他问题.
Can somebody please help me and tell me whether I am making some mistake or their is some other problem.
推荐答案
这篇关于YouTube javascript最受欢迎的视频API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!