woocommerce / wc-api-python

A Python wrapper for the WooCommerce API.
https://pypi.org/project/WooCommerce/
MIT License
212 stars 112 forks source link

Loading next results #24

Closed jdruiter closed 7 years ago

jdruiter commented 7 years ago

Woocommere API wc/v1 offers a next url.

With a minor modification this next link could be called with wcapi.get('orders', nextLink)

The code needs to be updated for this functionality.

Example: http://www.adventuretickets.nl/wp-json/wc/v1/orders?oauth_consumer_key=XXX&oauth_timestamp=1484423197&oauth_nonce=YYY&oauth_signature_method=HMAC-SHA256&oauth_signature=ZZZ&page=2

claudiosanches commented 7 years ago

You can just use wcapi.get('orders?page=2').