pixelpeter / laravel5-woocommerce-api-client

Laravel 5 wrapper for the Woocommerce REST API
MIT License
125 stars 48 forks source link

how to get order list? #18

Closed heinhtut95 closed 7 years ago

heinhtut95 commented 7 years ago

I finished all the 5 steps already and I added use Woocommerce; and public function index() { return Woocommerce::get('orders'); in PostController.

But its showing the error ike this ,please guide me. Thanks.

HttpClientException in HttpClient.php line 340: Syntax error

Johtec2000 commented 7 years ago

Make sure API URL is reachable (ModRewrite + htaccess).

pixelpeter commented 7 years ago

You can also check if your api is working correctly (without authentication) by calling

[your.domain]/wp-json/wc/v2