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
How to paginate in Node #3
Comments
I don't know which API you're trying to use, but something like this should work: bitbucket.repositories
.list({ username: 'MunifTanjim' })
.then(({ dataPage1, headers }) => {
console.log(dataPage1)
bitbucket
.getNextPage(dataPage1)
.then(({ dataPage2, headers }) => {
console.log(dataPage2)
})
.catch(err => console.error(err))
})
.catch(err => console.error(err)) Does this help? |
unfortunately not. I'm using this library in a node backend API that's returning paginated data to a AngularJS client side application. The AngularJS app displays the content, and supports paginated requests to the backend api. basically I need to do something like:
It's possible using the |
@AnalogJ That should resolve the issue.
npm package updated: Cheers 🎉 |
Thats exactly what I needed, thanks! |
Hey,
I'm trying to determine how to pass a
page
querystring parameter when requesting a list of repositories.The text was updated successfully, but these errors were encountered: