A lightning introduction to the GitHub API for the Hamburg Hackathon, June 2014.
The GitHub API ⚡️
View Slide
Ivan Žužak@izuzakHelpers Mike Adolphs@fooforgeJames Dennes@jdennes
What can you build?
Do something creativewith Contributions
Build a Dashboard
Integrate with somethingusing Webhooks ⚓️
Docs
Octokit
Third-party Libraries
Debugging ✨curl -v or it didn’t happen
Rate Limits › curl -I https://api.github.com/users/defunkt/reposHTTP/1.1 200 OKServer: GitHub.comX-RateLimit-Limit: 60X-RateLimit-Remaining: 59X-RateLimit-Reset: 1401815393Unauthenticated: 60 requests per hourAuthenticated: 5,000 requests per hour
Pagination › curl -I https://api.github.com/users/defunkt/reposHTTP/1.1 200 OKServer: GitHub.comLink:; rel=“next",; rel="last"Don’t get trolled by pagination
Thanks!