SHARE
TWEET

Untitled

a guest Dec 13th, 2016 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top