在日期范围(=时间段)内获取Github Gist

时间:2019-01-19 23:05:07

标签: rest github pagination github-api gist

有没有办法找到在过去两个日期之间创建/修改的所有要点?在Github Gist API中,只有关键字since,请参见Gist API。关键字until(例如,来自Commits API的关键字似乎不适用于主意。

在两个日期之间获取所有要点的方法是否可能有所不同?类似于How to retrieve git commit history for specific time period with cURL?,仅针对要点。

我尝试使用 pagination (即循环返回的页面)并使用类似URL的方式获取要点数据 https://api.github.com/gists?since=2019-01-01T21:30:11Z&page=1&per_page=001&until=2019-01-02T16:55:11Z  但它始终限制为3000个项目(不幸的是,until关键字被忽略了)。请求超过3000个阈值的页面将返回:

`GithubException: 422 {'message': 'In order to keep the API fast for everyone, pagination is limited for this resource.`

任何帮助表示赞赏。

0 个答案:

没有答案
相关问题