• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

ricburton/trending: A tiny Ruby API for the trending repositories on GitHub.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

ricburton/trending

开源软件地址:

https://github.com/ricburton/trending

开源编程语言:

Ruby 100.0%

开源软件介绍:

(Unofficial) GitHub Trending API

A tiny Ruby API for the trending repositories on GitHub

This API powers a little iPhone app I'm working called Repo. It shows you the trending repositories that are built with the languages you love.

Example request: http://githubtrending.herokuapp.com/trending?languages[]=ruby&languages[]=objective-c

Example response:

{
  "ruby": [
    {
      "rank": "#1",
      "title": "gitlabhq/gitlabhq",
      "description": "Project management and code hosting  application. Follow us on twitter @gitlabhq",
      "repo_url": "http://www.github.com/gitlabhq/gitlabhq"
    },
    {
      "rank": "#2",
      "title": "square/apropos",
      "description": "A simple way to serve up appropriate images for every visitor.",
      "repo_url": "http://www.github.com/square/apropos"
    } # Until #25
  ],
  "objective-c": [
    {
      "rank": "#1",
      "title": "nicolaschengdev/WYPopoverController",
      "description": "WYPopoverController is for the presentation of content in popover on iPhone / iPad devices. Very customizable.",
      "repo_url": "http://www.github.com/nicolaschengdev/WYPopoverController"
    },
    {
      "rank": "#2",
      "title": "alobi/ALAlertBanner",
      "description": "A clean and simple alert banner for iPhone and iPad",
      "repo_url": "http://www.github.com/alobi/ALAlertBanner"
    } # Until #25
  ]
}

#####TODO

  • Break apart the large fetch method
  • Handle incorrect languages
  • Accept 'all' as a language to return the overall leadboard
  • Refresh the cache every hour using Heroku Scheduler
  • Write a test suite



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap