woocommerce / wc-api-python

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

GET Product/Categories #18

Closed marianoduran closed 8 years ago

marianoduran commented 8 years ago

While trying to get all product/Categories from Woocommerce I am only getting a few instead of the 500 Categories that I have created programmatically. Any advice?

I am executing the follow code from Python "... wcapi = API( url="http://99.99.99.99", consumer_key="ck_XXXXXXXXXXXXXXXXXXXXXXXXXXXX", consumer_secret="cs_XXXXXXXXXXXXXXXXXXXXXXXXXXXX", wp_api=True, version="wc/v1" ) r = wcapi.get("products/categories/") r.json() ..."

Have seen that there is a parameter called "per_page" to determine the maximum number of items to be returned in result set. How should I apply in the code above?

Regards, Mariano

claudiosanches commented 8 years ago

I am only getting a few instead of the 500 Categories that I have created programmatically

Don't seems like a issue in this wrapper, so I'm closing. If you have questions about how the REST API works, you should try https://wordpress.org/support/plugin/woocommerce