Tag Archives: product

Magento API – Get Product Details

I was writing a little code snippet tonight to get the name and url for products in a particular category. Its quite simple to do with the Magento API, here is the code: <?php $soapUrl=’http://www.testdomain.com/’; $apiUser=’karen’; $apiPass=’my_api_key’; $proxy = new SoapClient($soapUrl.’api/soap?wsdl’); $sessionId = $proxy->login($apiUser, $apiPass); $productArr = $proxy->call($sessionId, ‘catalog_category.assignedProducts’, array(’33’)); $extnDetails=array(); foreach ($productArr as $product) […]

Posted in Developing with Magento | Also tagged , , | Leave a comment