Open ddhara opened 7 years ago
I am using below code to get orders but only 10 orders coming at a time so how can I get other orders? How can I use :rel = "next", :rel = "last" which I am getting in response?
:rel = "next", :rel = "last"
<?php require_once( 'lib/woocommerce-api.php' ); $options = array( 'debug' => true, 'return_as_array' => false, 'validate_url' => false, 'timeout' => 30, 'ssl_verify' => false, ); try { $client = new WC_API_Client( 'http://your-store-url.com', 'ck_enter_your_consumer_key', 'cs_enter_your_consumer_secret', $options ); $data = $client->orders->get(); } ?>
I am using below code to get orders but only 10 orders coming at a time so how can I get other orders? How can I use
:rel = "next", :rel = "last"
which I am getting in response?