API Commands
[All Commands]

Command: Info_Contact



command Info_Contact

Get informations about a single contact from your account

Input Parameters ($data):

string ssid Token from Login
array contact  
string id ID of your querying contact

Output Responses:

string status ok | error
array data Details about your request
 
string id ID
string name First name of contact
string surname Second name of contact
string org Organization name
string street Address of contact
string city City of contact
string pc ZIP code of contact
string sp State of contact
string cc ISO Country Code of contact
string phone Phone of contact in format +1.234567890
string fax Faxsimile of contact in format +1.234567890
string email Email of contact

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,
            
"contact" => array (
                
"id" => "G-000008"
        
)
    )
);

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

?>
INPUT: [data] => Array ( [ssid] => abcde [contact] => Array ( [id] => G-000008 ) ) OUTPUT: [status] => ok [data] => Array ( [name] => Pepa [surname] => Novak [org] => Firma s.r.o. [street] => Borivojova 35 [city] => Prague [pc] => 130 00 [sp] => [cc] => CZ [email] => info@domena.tld [phone] => +1.234567890 [fax] => [id] => G-000008 )

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