Created
September 24, 2014 10:00
-
-
Save epson121/3ce8036288fed21e40f7 to your computer and use it in GitHub Desktop.
xmlrpc_test script
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_once('app/Mage.php'); | |
$client = new Zend_XmlRpc_Client('----url----/api/xmlrpc/'); | |
// If somestuff requires api authentification, | |
// we should get session token | |
$session = $client->call('login', array('username', 'password')); | |
$res = $client->call('call', array($session, 'catalog_product.info', 'id')); | |
// If you don't need the session anymore | |
var_dump($res); | |
$client->call('endSession', array($session)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment