WooCommerce-REST-API-Client-Library icon indicating copy to clipboard operation
WooCommerce-REST-API-Client-Library copied to clipboard

Return 10 porducts and users?

Open irfanwv opened this issue 8 years ago • 4 comments

Why it return 10 no. of products and users?

irfanwv avatar Apr 05 '16 07:04 irfanwv

because you need parameter for example print_r( $wc_api->get_orders(array( 'filter[limit]' => 50 )));

ug-code avatar Jun 02 '16 18:06 ug-code

how it return all product

vsinghp avatar Aug 23 '16 20:08 vsinghp

$wc_api = new WC_API_Client( $consumer_key, $consumer_secret, $store_url ); //Returns all products print_r($wc_api->get_products());

ug-code avatar Aug 24 '16 10:08 ug-code

Excellent API. Excellent documentation. Excellent examples. Excellent and well organized code. Congratulations.

I saw in official documentation http://woocommerce.github.io/woocommerce-rest-api-docs/#pagination that pagination has some parameters (page, per_page and offset) that here change a little (for example per_page should be filter[limit]). I have 2 questions:

  1. "page" parameter works in your API with the same name as in official documentation??
  2. Pagination parameters can have the same name that official documentation to avoid mistakes??

Again, excellent work. Regards

I found it testing. It just "page" as in official documentation. Thanks

prestaalba avatar Nov 13 '16 17:11 prestaalba