thebinarypenguin / guaw

A jQuery plugin for displaying GitHub user activity in a handsome little widget
MIT License
4 stars 0 forks source link

Use hypermedia links for pagination #2

Closed thebinarypenguin closed 10 years ago

thebinarypenguin commented 10 years ago

The "User Activity" endpoint return a Link header with pagination URLs like this ...

Link: <https://api.github.com/user/672812/events/public?page=6>; rel="next", <https://api.github.com/user/672812/events/public?page=1>; rel="first", <https://api.github.com/user/672812/events/public?page=4>; rel="prev"

These URLs should be used instead of just tacking on "?page=X" to the base URL.

GitHub API Pagination Reference

thebinarypenguin commented 10 years ago

eaec6de should fix this