开发者

YouTube API Get all videos uploaded feed [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 9 years ago.

I can't seem to retrieve ALL videos from a particular channel on YouTube, despite the API giving example code that should perform just that. I'm using Java.

http://gdata.youtube.com/feeds/api/users/GoogleDevelopers/uploads

The above rss feed is the URL they suggest using along with the following sample code..

    /*init the list*/
    String feedUrl = "http://gdata.youtube.com/feeds/api/users/GoogleDevelopers/uploads";
    VideoFeed videoFeeder = null;
    videoFeeder = serviceobject.getFeed(new URL(feedUrl), VideoFeed.class);

Looping this with a for loop suggests 25 entries (as per the RSS).

However - the actual number of videos uploaded is significantly larger. (662 at time of writing). My query is how on earth you retriev开发者_如何学运维e everything with the API, not just a subset of the data. Any ideas on where I'm going wrong? Should I be using a different URL? http://www.youtube.com/GoogleDevelopers#g/a


Never mind. Twas a case of RTFM. Needed to page the results.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜