Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The GitHub API — Lightning introduction

The GitHub API — Lightning introduction

A lightning introduction to the GitHub API for the Hamburg Hackathon, June 2014.

James Dennes

June 07, 2014
Tweet

Other Decks in Programming

Transcript

  1. Rate Limits › curl -I https://api.github.com/users/defunkt/repos HTTP/1.1 200 OK Server:

    GitHub.com X-RateLimit-Limit: 60 X-RateLimit-Remaining: 59 X-RateLimit-Reset: 1401815393 Unauthenticated: 60 requests per hour Authenticated: 5,000 requests per hour
  2. Pagination › curl -I https://api.github.com/users/defunkt/repos HTTP/1.1 200 OK Server: GitHub.com

    Link: <https://api.github.com/user/2/repos?page=2>; rel=“next", <https://api.github.com/user/2/repos?page=4>; rel="last" Don’t get trolled by pagination