<?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, "from" => "2011-10-10", "to" => "2011-10-11" ));$response = $client->__call("Get_Accountings",$params);?> INPUT: [data] => Array ( [ssid] => 29ae201e12b466c7347a29 [from] => �2011-10-10 [to] => �2011-10-11 ) OUTPUT: [status] => ok [data] => Array ( [count] => �1 [from] => �2011-10-10 [to] => �2011-10-11 [accounting] => Array ( [date] => 2011-10-10 12:32:12 [text] => Renew_Domain domain.org [order] => 12321 [sum] => 1.32 [credit] => 12.34 ) )
<?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, "from" => "2011-10-10", "to" => "2011-10-11" ));$response = $client->__call("Get_Accountings",$params);?>