API Commands
[All Commands]

List_Web_Hosting_Aliases


List of aliases of a domain.

Input:

string ssid token from Login
string webhosting Web Hosting code
string domain hosted domain name

Output:

string status ok | error
array aliases list of aliases

Example:


<?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',
    
'domain' => 'domain.or.af'
];

$output $client->__call('List_Web_Hosting_Aliases', ['data' => $input]);

print_r($input);
print_r($output);
$input: Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [webhosting] => NGHTFH [domain] => domain.or.af ) $output: Array ( [status] => ok [aliases] => Array ( [0] => alias.or.af [1] => alias2.or.af ) )

API Manual - version from 2020-09-14 13:47:57