WooCommerce-REST-API-Client-Library
WooCommerce-REST-API-Client-Library copied to clipboard
Return 10 porducts and users?
Why it return 10 no. of products and users?
because you need parameter for example print_r( $wc_api->get_orders(array( 'filter[limit]' => 50 )));
how it return all product
$wc_api = new WC_API_Client( $consumer_key, $consumer_secret, $store_url ); //Returns all products print_r($wc_api->get_products());
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:
- "page" parameter works in your API with the same name as in official documentation??
- 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