WooCommerce REST API

by 4 replies
4
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!
#programming #api #rest #woocommerce
  • 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?
  • Your link has a Warning and a Fatal Error.
  • Show source (if possible i.e. no security/confidential risk ) not .php file .
    i.e. change filename to .txt
  • 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/

Next Topics on Trending Feed

  • 4

    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.