dev-master
9999999-devTalking to the WC REST API with Symfony2
The Requires
by Nav Appaiya
Wallogit.com
2017 © Pedro Peláez
Talking to the WC REST API with Symfony2
September 2016 Nav Note: This bundle is currently not maintained or used, so please use this bundle on your own risk., (*1)
Gives you a WC_CLIENT to work with the REST API V2 of your woocommerce webshop., (*2)
Please note that you will need a API_KEY and API_SECRET in order to use this bundle. Also don't forget to enable the pretty Permalinks for the WC-API endpoints to work., (*3)
And finally Configure the parameters for your WC-Shop in config:, (*4)
parameters:
woo_shop: http://wp-shop.nl/
woo_key: API_KEY
woo_secret: API_SECRET
Use it as a service by calling:, (*5)
$client = $this->get('nav_woo.client');
$client->orders->get();
$client->orders->update_status($order_id, 'pending')
$client->customers->delete($customer_id);
$client->customers->get_orders($customer_id)
$client->products->get_count();
$client->products->get_count(array('type'=>'simple'))
For more examples and usage please see the examples given in WooBundle/Client/example/example.php, (*6)
Credits original library: Copyright (c) 2013-2014 - Gerhard Potgieter, Max Rice and other contributors https://github.com/kloon/WooCommerce-REST-API-Client-Library, (*7)
Talking to the WC REST API with Symfony2