This should be covered in the authentication section here https://woothemes.github.io/woocommerce-rest-api-docs/#authentication
You can use the PHP library – it would need to be included by your PHP code using the API.
Okay – the PHP Library on GitHub? I know the docs you are talking about (link), I just don’t understand where I am supposed to put the library and the php file that is making the calls to the API (i.e. get orders).
okay, but again —
“I just don’t understand where I am supposed to put the library and the php file that is making the calls to the API (i.e. get orders).”
Sorry to be a pain in the … But am I putting it in my theme’s functions.php ? Is it a standalone doc that can just go into the root of the site? Do I need to put it in the WooCommerce folder in my theme?
Well it all depends on what you’re doing. Building a plugin? Building a theme? Building something standalone? The library is just PHP code – it just needs to be included (once) wherever the code using it is located.
Ahhh! Okay, okay. That makes much more sense!
We are just using the WC API so a fulfillment company can see the orders that are processing.
From the docs, it looked like all I needed to do was create the API to obtain the consumer secret and key and then setup the PHP wrapper for the oAuth library to work properly.
My issue was (and I guess still is?) knowing where to put the files since we didn’t technically create a plugin or anything for it.
If its for a 3rd party, **they** need to integrate with the REST API, not you. The API is how they will access the data.
Thank you so much for your help!!!