Advertisement
Guest User

Untitled

a guest
Dec 13th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?php
  2. error_reporting(1);
  3. ini_set('display_errors', 1);
  4. $api_url_v1 = "http://star.dev/api/soap/?wsdl=1";
  5.  
  6. $username = 'test';
  7. $password = 'test123';
  8.  
  9. $cli = new SoapClient($api_url_v1);
  10.  
  11. //retreive session id from login
  12. $session_id = $cli->login($username, $password);
  13.  
  14. //call customer.list method
  15. $result = $cli->call($session_id, 'customer.list', array(array()));
  16. var_dump($result);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement