API Commands
[All Commands]

Command: Users_List



command Users_List

Retrieve list of all your sub-users

Input Parameters ($data):

string ssid Token from Login

Output Responses:

string status ok | error
array data Details about your request
 
int count total number of your sub-users
array users  
string id Unique identification number of this user
string username Login name of the user
string name Real name of the user
string credit Amount of credit available
string currency Currency of the credit
string billing_name Billing org/person name
string billing_street Billing address
string billing_city Billing city
string billing_pc Billing postal code
string billing_country Billing country code
string company_id Company identification number
string company_vat Value added tax number
string email Contact email
string phone Contact phone number
string last_login Time of last successfull login

Sample:


<?php

$client 
= new SoapClient(
        
null
        array(
            
"location" => "https://PRODUCTION/cmd.php",
            
"uri" => "http://PRODUCTION/soap"
            
)
        );

$params = array ( 
    
"data" => array (
        
"login" => "demo",
        
"password" => "password",
    )
);

$response $client->__call("Login",$params);
$token $response["data"]["ssid"];

$params = array (
    
"data" => array (
            
"ssid" => $token,
    )
);

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

?>
INPUT: [data] => Array ( [ssid] => 29ae201f12b466c7347a29 ) OUTPUT: [status] => ok [data] => Array ( [count] => 1 [users] => Array ( [0] => Array ( [id] => 12345 [username] => subdemo [name] => John Doe [credit] => 228.00 [currency] => EUR [billing_name] => Example Inc. [billing_street] => 123 Example Dr. [billing_city] => Dulles [billing_pc] => 20166-6503 [billing_country] => US [company_id] => 465875346 [company_vat] => 632128643 [email] => jdoe@example.com [phone] => +1.7035555555 [last_login] => 2012-04-10 18:58:51 ) ) )

API Manual - version from 2017-11-21 10:46:44