API Commands
[All Commands]

Command: Info_User



command Info_User

Retrieve single sub-user

Input Parameters ($data):

string ssid Token from Login
int id ID of the user

Output Responses:

string status ok | error
array data Details about your request
 
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,
            
"id" => 12345
    
)
);

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

?>
INPUT: [data] => Array ( [ssid] => 29ae201f12b466c7347a29 [id] => 12345 ) OUTPUT: [status] => ok [data] => 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 2023-05-12 12:15:50