API Commands
[All Commands]

Command: Domains_List



command Domains_List

Get all domains from your account

Input Parameters ($data):

string ssid Token from Login

Output Responses:

string status ok | error
array data Details about your request
 
array domains  
string name Domain name
string expire Domain expiration date
int autorenew Domain autorenew setting (0 - EXPIRE | 1 - AUTORENEW | 2 - RENEWONCE)
int count Domains count

Sample:


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

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

$response $client->__call("Login",$params);

$token $response["data"]["ssid"];

unset(
$params);

$params = array (
    
"data" => array (
            
"ssid" => $token,
    )
);

$response $client->__call("Domains_List",$params);

?>
INPUT: [data] => Array ( [ssid] => 29ae201e12b466c7347a29 ) OUTPUT: [status] => ok [data] => Array ( [domains] => Array ( [name] => domena.tld [expire] => 2011-02-10 ) )

API Manual - version from 2017-03-07 10:42:19