Last active
August 29, 2015 14:25
-
-
Save muriloazevedo/a3d3381efaeee3530f63 to your computer and use it in GitHub Desktop.
acesso ao magento via soap
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 | |
// Magento login information | |
$mage_url = 'http://MAGENTO/api/soap?wsdl'; | |
$mage_user = 'soap_user'; | |
$mage_api_key = '********'; | |
// Initialize the SOAP client | |
$soap = new SoapClient( $mage_url ); | |
// Login to Magento | |
$session_id = $soap->login( $mage_user, $mage_api_key ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment