<?php$client = new SoapClient( null, array( "location" => "https://PRODUCTION/soap/cmd.php", "uri" => "http://PRODUCTION/soap" ) );$params = array ( "data" => array ( "login" => "demo", "password" => "password", ));$response = $client->__call("Login",$params);$token = $response["data"]["ssid"];unset($params);$params = array ( "data" => array ( "ssid" => $token, ));$response = $client->__call("Get_Credit",$params);?> INPUT: [data] => Array ( [ssid] => 29ae201e12b466c7347a29 ) OUTPUT: [status] => ok [data] => Array ( [credit] => Array ( [amount] => 638754.00 [threshold] => 0.00 [users] => 125.00 [currency] => CZK ) )
<?php$client = new SoapClient( null, array( "location" => "https://PRODUCTION/soap/cmd.php", "uri" => "http://PRODUCTION/soap" ) );$params = array ( "data" => array ( "login" => "demo", "password" => "password", ));$response = $client->__call("Login",$params);$token = $response["data"]["ssid"];unset($params);$params = array ( "data" => array ( "ssid" => $token, ));$response = $client->__call("Get_Credit",$params);?>