Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   WooCommerce REST API (https://www.warriorforum.com/programming/1141573-woocommerce-rest-api.html)

pdrs 14th December 2015 09:07 AM

WooCommerce REST API
 
Hey Everyone,

Just starting to play around with the woocommerce rest api. I have next to no API experience so it's all learning curve at this point.

Basically I'm hoping to use one website as our main portal to hold all of our products, and then display those products on a few different satellite sites relating to brand.

I found a library to help me hookup to the API and I can successfully pull a product but not sure what to do with the data I'm pulling:

http://104.236.101.10/apitest/example.php

Any help would be appreciated!

pdrs 14th December 2015 11:20 AM

Re: WooCommerce REST API
 
looks like it's returning all of that data as an object, i'm just having hard time breaking it down into separate values $description= $object->description; something like that should work?

Joe Ray 14th December 2015 03:37 PM

Re: WooCommerce REST API
 
Your link has a Warning and a Fatal Error.

robomedia 14th December 2015 04:10 PM

Re: WooCommerce REST API
 
Show source (if possible i.e. no security/confidential risk ) not .php file .
i.e. change filename to .txt

pdrs 16th December 2015 07:32 AM

Re: WooCommerce REST API
 
sorry guys, i kept changing it while I was messing around with it.

Basically I have the WooCommerce REST API returning all of the products into what appears to be an Object with other embedded objects? Trying to figure out how I can loop through and sort things out by category.

http://104.236.101.10/mens/


All times are GMT -6. The time now is 11:01 AM.