API Commands
[All Commands]

List_Web_Hosting_Email_Domains


List of email domains and subdomains.

Input:

string ssid token from Login
string webhosting Web Hosting code

Output:

string status ok | error
array domains list of domains and subdomains
string domain full domain name
string type domain or subdomain
array filters list of filtered domains and email addresses
string address domain or email address
string type blacklist or whitelist
array antispam list of antispam rules
string flag parameter name
int value parameter value
array blocked list of domains with inactive email administration
string domain full domain name
string reason mx = domain's MX DNS records are incorrect; other = domain is already hosted by another web hosting service

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'
];

$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 ( ) )

API Manual - version from 2020-06-03 13:27:22