GitHub API流行回购 [英] GitHub API popular repos

查看:97
本文介绍了GitHub API流行回购的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用户是否可以通过API访问最有星级或最受关注的存储库?类似于这些网页。



github.com/popular/starred strong>



github.com/languages/ shell / most_watched

解决方案

否:这是以用户为中心的, .github.com / changes / 2012-9-5-watcher-api /rel =nofollow noreferrer>watch现在是star。


以前称为观看的内容现在是主演。

主演基本上是书签有趣储存库的一种方式。

观看是一种表示您希望在存储库上接收电子邮件或网络通知的方式。







<当搜索GUI现在将星星作为排序顺序(se e获取排序github存储库的搜索结果由some属性(分支或明星的数量),2013年2月),搜索API (V2中的一个端口)是唯一提及stars作为存储库的排序顺序

  GET / legacy / repos / search /:关键字?sort = stars 

(this should 适用于公共GH和GHE:GitHub对于企业而言,但需要一个关键字,并且不会遵循v3分页模式。此方法每页最多返回100个结果,并且可以使用start_page参数提取页面。)


Do users have access to the "most starred" or "most watched" repositories, through the API? Similar to these pages.

github.com/popular/starred

github.com/languages/shell/most_watched

解决方案

No: this is user-centric, meaning you get the repo starred by users, or by a given user.

And don't forget what you are calling "watch" is now "star".

What used to be known as "Watching" is now "Starring".
Starring is basically a way to bookmark interesting repositories.
Watching is a way to indicate that you want to receive email or web notifications on a Repository.


While the search GUI now exposes "stars" as a sort order (see "Get sorted github repository search results by "some" attribute(the number of forks or stars)", February 2013), the search API (a port from V2) is the only one mentioning "stars" as a sort order for repositories.

GET /legacy/repos/search/:keyword?sort=stars

(this should work both for public GH and GHE: GitHub for enterprise, but requires a keyword, and does not follow the v3 pagination pattern. This method returns up to 100 results per page and pages can be fetched using the start_page parameter.)

这篇关于GitHub API流行回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆