API Commands
[All Commands]

Command: Contacts_List



command Contacts_List

Get all contacts from your account

Input Parameters ($data):

string ssid Token from Login

Output Responses:

string status ok | error
array data Details about your request
 
array contacts  
string name First Name
string surname Last Name
string org Organization
string street Street
string city City
string pc Postal code
string sp State
string cc Country Code
string email E-Mail
string phone Phone
string fax Fax
string id Subreg ID
int count Contacts 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("Contacts_List",$params);

?>
INPUT: [data] => Array ( [ssid] => 29ae201e12b466c7347a29 ) OUTPUT: [status] => ok [data] => Array ( [contacts] => Array ( [0] => Array ( [name] => Jan [surname] => Novak [org] => [street] => Novakova 461 [city] => Novakov [pc] => 99933 [sp] => CZ [cc] => CZ [email] => novak@novakov.nov [phone] => +420.123456789 [fax] => [id] => G-000000 ) ) )

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