API Commands
[All Commands]

Command: Domains_List



command Domains_List

Get all domains from your account

Input Parameters ($data):

string ssid Token from Login
int for_user ID of your customer's user account, to retrieve its domains list. Leave empty for your own domains list. (optionally)

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:


<?php
$client 
= new SoapClient(
        
null
        array(
            
"location" => "https://PRODUCTION/soap/cmd.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 2023-05-12 12:15:50