Created
February 8, 2011 15:26
-
-
Save t10u/816578 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'app/Mage.php'; | |
Mage::app('admin')->setUseSessionInUrl(false); | |
try { | |
$client = new Zend_Soap_Client('http://local.magento/api/soap/?wsdl'); | |
// login | |
$sessionId = $client->login('user', 'pass'); | |
// get product info | |
$product = $client->call($sessionId, 'product.info', 'PRODUCT_SKU_OR_ID'); | |
var_dump($product); | |
} catch (Exception $e) { | |
// log the error | |
Mage::log($e->getMessage(), Zend_Log::ERR); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment