且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

访问***用户上传供稿中超过start_index = 1000的项目

更新时间:2023-11-26 22:57:58

支持获取给定帐户的所有视频,但是您需要确保对上传Feed的请求正在进行中针对后端数据库而不是搜索索引.因为要在请求URL中包含orderby=published,所以您违反了搜索索引.搜索索引供稿最多只能有1000个条目.

Getting all the videos for a given account is supported, but you need to make sure that your request for the uploads feed is going against the backend database and not the search index. Because you're including orderby=published in your request URL, you're going against the search index. Search index feeds are limited to 1000 entries.

摆脱orderby=published,您将获得所需的数据.无论如何,上传Feed的默认顺序是按时间倒序.

Get rid of the orderby=published and you'll get the data you're looking for. The default ordering of the uploads feed is reverse-chronological anyway.

这是一个特别容易犯的错误,我们在博客上提供了更详细的解释:

This is a particularly easy mistake to make, and we have a blog post up explaining it in more detail:

http://apiblog.***.com/2012/03/keep-things-fresh.html

令人高兴的是,这不再是API版本3中的问题.

The nice thing is that this is something that will no longer be a problem in version 3 of the API.