Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <?php
  2.  
  3. $apiUser = 'api_user'; //The api user name you created in magento
  4. $apiPassword = 'password'; //The api password
  5. $wsdlUrl = 'http(s)://your-magento-domain/api/soap_v2?wsdl=1';
  6.  
  7.  
  8. $soapClient = new SoapClient($wsdlUrl);
  9. $apiSession = $soapClient->login($apiUser, $apiPassword);
  10.  
  11. $params = array('filter' => array(
  12. array('key' => 'status', 'value' => 'pending'),
  13. array('key' => 'customer_is_guest', 'value' => '1')
  14. ));
  15. $result = $soapClient->salesOrderList($apiSession, $params)
  16.  
  17. //End your session
  18. $client->endSession($session);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement