API Commands
[All Commands]

Command: WorldHosting_Update_Email_Domain



command WorldHosting_Update_Email_Domain

Change some parameters of e-mail domain or subdomain

Input Parameters ($data):

string ssid Token from Login
string domain hosted domain name
string edomain full e-mail domain name
array filters list of filtered domains and e-mail addresses (optionally)
string address domain or e-mail address
string type blacklist/whitelist
array antispam list of antispam rules (optionally)
string flag parameter name
int value parameter value

Output Responses:

string status ok | error
array data Details about your request
 

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',
    
'edomain' => 'domain.or.af',
    
'filters' => 
    array (
      
=> 
      array (
        
'address' => 'blacklisted.or.af',
        
'type' => 'blacklist',
      ),
    ),
    
'antispam' => 
    array (
      
=> 
      array (
        
'flag' => 'POINTS',
        
'value' => 5,
      ),
    ),
  ),
);

$response $client->__call("WorldHosting_Update_Email_Domain",$params);
INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [domain] => domain.or.af [edomain] => domain.or.af [filters] => Array ( [0] => Array ( [address] => blacklisted.or.af [type] => blacklist ) ) [antispam] => Array ( [0] => Array ( [flag] => POINTS [value] => 5 ) ) ) ) OUTPUT: Array ( [status] => ok )

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