woocommerce / wc-api-python

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

not get all products #27

Closed MikeSoft closed 7 years ago

MikeSoft commented 7 years ago

the next code ` import json from woocommerce import API

wcapi = API( url="xxxxxxxxxxxxx", consumer_key="xxxxxxxxxxxx", consumer_secret="xxxxxxxxxxxx" )

r = wcapi.get("products") print r.text `

just get 10 products, and where are the others? o.O

claudiosanches commented 7 years ago

This is not an issue in this library and in the REST API documentation talks about pagination and items for request. Have you read the REST API docs? https://woocommerce.github.io/woocommerce-rest-api-docs/

jroquejr commented 6 years ago

Reopen this issue. Even passing the filter by querystring to api does not accept:

wcapi = API( url="https://primosupermercado.com.br", consumer_key="ck_xxxx", consumer_secret="cs_xxxx", verify_ssl=False ) response = wcapi.get("products?per_page=12")

claudiosanches commented 6 years ago

@jroqueweb because this depends on the versions that you are using of the REST API, not all versions works with per_page. You should follow the instructions from our docs: https://woocommerce.github.io/woocommerce-rest-api-docs/