API Commands
[All Commands]

Command: Check_Object



command Check_Object

Check if object is available or not (only CZ,EE)

Input Parameters ($data):

string ssid Token from Login
string object contact, nsset, keyset (only CZ, EE)
string id ID for check availability

Output Responses:

string status ok | error
array data Details about your request
 
string id Object ID
string avail 0 - not available, 1 - available

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,
            
"object" => "contact",
            
"id" => "NIC",
    )
);

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

?>
INPUT: [data] => Array ( [ssid] => 29ae201e12b466c7347a29 [object] => �contact [id] => NIC ) OUTPUT: [status] => ok [data] => Array ( [id] => NIC [avail] => �1 )

API Manual - version from 2023-05-12 12:15:50