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. The GitHub API ⚡️

    View Slide

  2. Ivan Žužak
    @izuzak
    Helpers
    Mike Adolphs
    @fooforge
    James Dennes
    @jdennes

    View Slide

  3. What can you build?

    View Slide

  4. Do something creative
    with Contributions

    View Slide

  5. Build a Dashboard

    View Slide

  6. Integrate with something
    using Webhooks ⚓️

    View Slide

  7. Docs

    View Slide

  8. Octokit

    View Slide

  9. Third-party Libraries

    View Slide

  10. Debugging ✨
    curl -v or it didn’t happen

    View Slide

  11. 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

    View Slide

  12. Pagination
    › curl -I https://api.github.com/users/defunkt/repos
    HTTP/1.1 200 OK
    Server: GitHub.com
    Link:
    ; rel=“next",
    ; rel="last"
    Don’t get trolled by pagination

    View Slide

  13. Thanks!

    View Slide