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

How to properly do paging? #132

Open
rikkertkoppes opened this issue Sep 14, 2023 · 0 comments
Open

How to properly do paging? #132

rikkertkoppes opened this issue Sep 14, 2023 · 0 comments

Comments

@rikkertkoppes
Copy link

I am trying to implement paged requests to woocommerce.

I understand there is a per_page parameter as well as a page parameter on the requests, as described here

Also, I understand that there is a link header available, as well as x-wp-total and x-wp-totalpages headers, which are also described.

However, it is not clear to me how I can use the value of the link header with the api, other than string parsing that header and plucking out the values for per_page and page for the next request.

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

1 participant