Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(1);
- ini_set('display_errors', 1);
- $api_url_v1 = "http://star.dev/api/soap/?wsdl=1";
- $username = 'test';
- $password = 'test123';
- $cli = new SoapClient($api_url_v1);
- //retreive session id from login
- $session_id = $cli->login($username, $password);
- //call customer.list method
- $result = $cli->call($session_id, 'customer.list', array(array()));
- var_dump($result);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement