<?php$client = new SoapClient(null, [ 'location' => 'https://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']];$output = $client->__call('List_Web_Hostings', ['data' => $input]);print_r($input);print_r($output); $input: Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 ) $output: Array ( [status] => ok [webhostings] => Array ( [0] => Array ( [webhosting] => NGHTFH [expire] => 2019-02-02 [period] => 6 [domains] => Array ( [0] => domain.or.af [1] => domain2.or.af ) [plan] => 6 [name] => Basic [type] => normal [max_domains] => 1 [capacity_mb] => 10000 [avail_web] => 1 [avail_mysql] => 1 [avail_email] => 1 [php_versions] => Array ( [0] => 5.3 [1] => 5.4 [2] => 5.5 [3] => 5.6 [4] => 7.0 [5] => 7.1 [6] => 7.2 ) ) [1] => Array ( [webhosting] => UCFI8B [expire] => 2019-08-17 [period] => 1 [domains] => Array ( ) [name] => Basic [type] => normal [max_domains] => 1 [capacity_mb] => 10000 [avail_web] => 1 [avail_mysql] => 1 [avail_email] => 1 [php_versions] => Array ( [0] => 5.3 [1] => 5.4 [2] => 5.5 [3] => 5.6 [4] => 7.0 [5] => 7.1 [6] => 7.2 ) ) ) )
<?php$client = new SoapClient(null, [ 'location' => 'https://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']];$output = $client->__call('List_Web_Hostings', ['data' => $input]);print_r($input);print_r($output);