by pdrs
4 replies
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!
#api #rest #woocommerce
  • Profile picture of the author pdrs
    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?
    Signature
    RemoteControlHelicopterReviews.(com/net) - Up for sale! No reasonable offer refused. Great branding for a super hot niche!
    {{ DiscussionBoard.errors[10438876].message }}
  • Profile picture of the author Joe Ray
    Your link has a Warning and a Fatal Error.
    {{ DiscussionBoard.errors[10439170].message }}
  • Profile picture of the author robomedia
    Show source (if possible i.e. no security/confidential risk ) not .php file .
    i.e. change filename to .txt
    {{ DiscussionBoard.errors[10439202].message }}
  • Profile picture of the author pdrs
    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/
    Signature
    RemoteControlHelicopterReviews.(com/net) - Up for sale! No reasonable offer refused. Great branding for a super hot niche!
    {{ DiscussionBoard.errors[10441741].message }}

Trending Topics