<?php$client = new SoapClient( null, array( "location" => "https://PRODUCTION/cmd.php", "uri" => "http://PRODUCTION/soap" ) );$params = array ( "data" => array ( "login" => "demo", "password" => "password", ));$response = $client->__call("Login",$params);$token = $response["data"]["ssid"];$params = array ( "data" => array ( "ssid" => $token, ));$response = $client->__call("Users_List",$params);?> INPUT: [data] => Array ( [ssid] => 29ae201f12b466c7347a29 ) OUTPUT: [status] => ok [data] => Array ( [count] => 1 [users] => Array ( [0] => Array ( [id] => 12345 [username] => subdemo [name] => John Doe [credit] => 228.00 [currency] => EUR [billing_name] => Example Inc. [billing_street] => 123 Example Dr. [billing_city] => Dulles [billing_pc] => 20166-6503 [billing_country] => US [company_id] => 465875346 [company_vat] => 632128643 [email] => jdoe@example.com [phone] => +1.7035555555 [last_login] => 2012-04-10 18:58:51 [domains_count] => 10 ) ) )
<?php$client = new SoapClient( null, array( "location" => "https://PRODUCTION/cmd.php", "uri" => "http://PRODUCTION/soap" ) );$params = array ( "data" => array ( "login" => "demo", "password" => "password", ));$response = $client->__call("Login",$params);$token = $response["data"]["ssid"];$params = array ( "data" => array ( "ssid" => $token, ));$response = $client->__call("Users_List",$params);?>