<?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, 'ip' => '1.2.3.4', ),);$response = $client->__call("Anycast_List_Domains",$params); INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [ip] => 1.2.3.4 ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [domains] => Array ( [0] => Array ( [domain] => domain123.com [day] => 45 [month] => 1023 ) [1] => Array ( [domain] => domainxyz.com [day] => 15 [month] => 314 ) ) ) )
<?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, 'ip' => '1.2.3.4', ),);$response = $client->__call("Anycast_List_Domains",$params);