API Commands
[All Commands]

Command: WorldHosting_List_Email_Domains



command WorldHosting_List_Email_Domains

Get list of e-mail domains and subdomains

Input Parameters ($data):

string ssid Token from Login
string domain hosted domain name

Output Responses:

string status ok | error
array data Details about your request
 
array domains list of domains and subdomains
string edomain full domain name
string type domain/subdomain
array filters list of filtered domains and e-mail addresses
string address domain or e-mail address
string type blacklist/whitelist
array antispam list of antispam rules
string flag parameter name
int value parameter value
array blocked list of domains with inactive e-mail administration
string edomain full domain name
string reason mx/other - reason why the e-mail administration is inactive

Sample:


<?php
$client 
= new SoapClient(
        
null
        array(
            
"location" => "https://PRODUCTION/cmd.php",
            
"uri" => "http://PRODUCTION/soap"
            
)
        );

$params = array ( 
    
"data" => array (
        
"login" => "demo",
        
"password" => "password",
    )
);

$response $client->__call("Login",$params);
$token $response["data"]["ssid"];

$params = array (
  
'data' => 
  array (
    
'ssid' => $token,
    
'domain' => 'domain.or.af',
  ),
);

$response $client->__call("WorldHosting_List_Email_Domains",$params);
INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [domain] => domain.or.af ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [domains] => Array ( [0] => Array ( [edomain] => 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 ( [edomain] => domain.or.af [type] => domain [filters] => Array ( ) [antispam] => Array ( ) ) ) [blocked] => Array ( ) ) )

API Manual - version from 2019-07-31 15:54:31