Guest User

Untitled

a guest
Feb 16th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?php
  2. require_once(__DIR__ . '/app/Mage.php');
  3. Mage::app();
  4.  
  5. $api_url_v2 = "https://ninobambino.in/index.php/api/v2_soap/?wsdl=1";
  6.  
  7. $username = 'test123';
  8. $password = 'test123';
  9.  
  10. $cli = new SoapClient($api_url_v2);
  11.  
  12. //retreive session id from login
  13. //$session_id = $cli->login($username, $password);
  14. $session = $cli->login('test123', 'test123');
  15.  
  16. //call customer.list method
  17. $result = $cli->customerCustomerList($session_id);
  18. print_r($result);
Add Comment
Please, Sign In to add comment