Skip to content

Instantly share code, notes, and snippets.

@muriloazevedo
Last active August 29, 2015 14:25
Show Gist options
  • Save muriloazevedo/a3d3381efaeee3530f63 to your computer and use it in GitHub Desktop.
Save muriloazevedo/a3d3381efaeee3530f63 to your computer and use it in GitHub Desktop.
acesso ao magento via soap
<?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