<?php$client = new SoapClient(null, [ 'location' => 'http://subreg.cz/soap/cmd.php', 'uri' => 'http://subreg.cz/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_Domains', ['data' => $input]);print_r($input);print_r($output); $input: Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [webhosting] => NGHTFH ) $output: Array ( [status] => ok [domains] => Array ( [0] => Array ( [domain] => domain.or.af [php_version] => 7.2 [ssl] => 1 [dir] => / [open_basedir] => / [autosubdomains] => 0 [ip_hosting] => 185.82.212.80 [ipv6_hosting] => 2a03:6920:0:cafe::add [ip_domain] => 185.82.212.80 [ipv6_domain] => [dns_ok] => 1 [dns_allowed] => 1 ) [1] => Array ( [domain] => domain2.or.af [php_version] => 5.6 [ssl] => 0 [dir] => /domain2 [open_basedir] => / [autosubdomains] => 1 [ip_hosting] => 185.82.212.80 [ipv6_hosting] => 2a03:6920:0:cafe::add [ip_domain] => 1.2.3.4 [ipv6_domain] => [dns_ok] => 0 [dns_allowed] => 1 ) ) )
<?php$client = new SoapClient(null, [ 'location' => 'http://subreg.cz/soap/cmd.php', 'uri' => 'http://subreg.cz/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_Domains', ['data' => $input]);print_r($input);print_r($output);