Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please support pagination #111

Open
devurandom opened this issue Jan 22, 2017 · 3 comments
Open

Please support pagination #111

devurandom opened this issue Jan 22, 2017 · 3 comments

Comments

@devurandom
Copy link

GitHub paginates responses to API calls. It would be nice if Tentacles would support this.

@bostonaholic
Copy link
Contributor

@devurandom You can pass :per-page as an option to most, if not all calls. Search the README.md for :per-page to find out how to use it.

@devurandom
Copy link
Author

My problem was that I could not figure out how to find the next URL. Without that I would not be able to pass it to :page.

@bostonaholic
Copy link
Contributor

bostonaholic commented Feb 27, 2017

@devurandom I haven't tried it, but by looking at the source, it looks like it's in the response's metadata.

user> (-> (repos/user-repos "bostonaholic" {:per-page 10}) meta :links :next)
"https://api.github.com/user/362146/repos?throw_exceptions=true&per_page=10&page=2"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants