woocommerce / wc-api-python

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

Request return none with per_page argument #73

Closed vakochetkov closed 3 years ago

vakochetkov commented 3 years ago

Request like below res = wcapi.get("products", params={"per_page": 50, 'category': id}) returns none ([]) but request without "per_page" works fine but returns only 10 items res = wcapi.get("products", params={'category': id})

vakochetkov commented 3 years ago

Annotation. Category consists about 30 products and I need to retrieve them all with current program logic

vakochetkov commented 3 years ago

I had to use pagination to fix the problem. Anyway, it seem to be very strange request with "per_page" return None with number more than total number of products!