<?php$client = new SoapClient(null, [ 'location' => 'http://regtons.com/soap/cmd.php', 'uri' => 'http://regtons.com/soap']);$login_input = [ 'login' => 'demo', 'password' => 'demouser'];$login_output = $client->__call('Login', ['data' => $login_input]);$input = [ 'ssid' => $login_output['data']['ssid'], 'webhosting' => 'NGHTFH'];$output = $client->__call('List_Web_Hosting_Email_Domains', ['data' => $input]);print_r($input);print_r($output); $input: Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [webhosting] => NGHTFH ) $output: Array ( [status] => ok [domains] => Array ( [0] => Array ( [domain] => acc.domain.or.af [type] => subdomain [filters] => Array ( [0] => Array ( [address] => blacklisted.or.af [type] => blacklist ) ) [antispam] => Array ( [0] => Array ( [flag] => POINTS [value] => 5 ) ) ) [1] => Array ( [domain] => domain.or.af [type] => domain [filters] => Array ( ) [antispam] => Array ( ) ) ) [blocked] => Array ( ) )
<?php$client = new SoapClient(null, [ 'location' => 'http://regtons.com/soap/cmd.php', 'uri' => 'http://regtons.com/soap']);$login_input = [ 'login' => 'demo', 'password' => 'demouser'];$login_output = $client->__call('Login', ['data' => $login_input]);$input = [ 'ssid' => $login_output['data']['ssid'], 'webhosting' => 'NGHTFH'];$output = $client->__call('List_Web_Hosting_Email_Domains', ['data' => $input]);print_r($input);print_r($output);