API Commands
[All Commands]

Command: In_Subreg



command In_Subreg

Get information about account of domain

Input Parameters ($data):

string ssid Token from Login
string domain Domain name

Output Responses:

string status ok - Domain is in Subreg | error - Domain is not in Subreg
 
string myaccount Domain is on my account (yes - Yes | no - No)

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,
        
"domain" => "domain.test"
      
)
   );

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

?>
INPUT: [data] => Array ( [ssid] => 29ae201e12b466c7347a29 [domain] =>  domain.test ) OUTPUT: [status] => ok [data] => Array ( [myaccount] => no ) OUTPUT (with errors): [status] => error [error] => Array ( [errormsg] => Domain does not exist [errorcode] => Array ( [major] => 507 [minor] => 1009 ) )

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