<?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, 'zone' => 'domain123.com', 'from' => '2018-07-01', 'to' => '2018-07-31', ),);$response = $client->__call("Anycast_Domain_Statistics",$params); INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [zone] => domain123.com [from] => 2018-07-01 [to] => 2018-07-31 ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [total] => 35074 [unique] => 2419 [total_daily] => Array ( [2018-07-01] => 3211 [...] => ... [2018-07-31] => 2301 ) [unique_daily] => Array ( [2018-07-01] => 414 [...] => ... [2018-07-31] => 295 ) [geoip] => Array ( [DE] => 15415 [US] => 5507 ) [ip] => Array ( [1.2.3.4] => 11471 [5.6.7.8] => 3153 ) [ipxx] => Array ( [1.2.3.xx] => 3153 [5.6.7.xx] => 813 ) [queries] => Array ( [www.domain123.com] => 12209 ) [types] => Array ( [A] => 11767 [AAAA] => 6551 ) ) )
<?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, 'zone' => 'domain123.com', 'from' => '2018-07-01', 'to' => '2018-07-31', ),);$response = $client->__call("Anycast_Domain_Statistics",$params);