为什么我收到不同的结果搜索存储库?
Why i receive different result searching repositories?
我尝试在 GitHub 上查找最新更新的存储库。
我用这两种方法:
https://api.github.com/search/repositories?q=user:github+sort:updated+&per_page=5&type=all
https://api.github.com/users/github/repos?type=all&sort=updated&per_page=5
为什么我得到差价回购?哪种方法有效?
在 GitHub 网站上,我可以看到与第一个类似的结果 link:
我查看了这两个请求的结果。看起来在第一种情况下 sort:updated
使用 pushed_at
字段对结果进行排序。在第二种情况下,sort=updated
使用 updated_at
字段对结果进行排序。因此,根据您想要对结果进行排序的字段,您可以使用其中任何一个。奇怪的是,我找不到任何关于这种差异的文档。
我尝试在 GitHub 上查找最新更新的存储库。
我用这两种方法:
https://api.github.com/search/repositories?q=user:github+sort:updated+&per_page=5&type=all
https://api.github.com/users/github/repos?type=all&sort=updated&per_page=5
为什么我得到差价回购?哪种方法有效?
在 GitHub 网站上,我可以看到与第一个类似的结果 link:
我查看了这两个请求的结果。看起来在第一种情况下 sort:updated
使用 pushed_at
字段对结果进行排序。在第二种情况下,sort=updated
使用 updated_at
字段对结果进行排序。因此,根据您想要对结果进行排序的字段,您可以使用其中任何一个。奇怪的是,我找不到任何关于这种差异的文档。