API Commands
[All Commands]

Info_Reseller_Hosting_Capacity


Retrieve Reseller-Hosting storage capacity usage.

Input:

string ssid token from Login

Output:

string status ok | error
int available available storage capacity (in MB)
int used used storage capacity (in MB)
string used_percent percentage of storage capacity used

Example:


<?php

$client 
= new SoapClient(null, [
    
'location' => 'http://regtons.com/soap/cmd.php',
    
'uri' => 'http://regtons.com/soap'
]);

$login_input = [
    
'login' => 'demo',
    
'password' => 'demouser'
];

$login_output $client->__call('Login', ['data' => $login_input]);

$input = [
    
'ssid' => $login_output['data']['ssid']
];

$output $client->__call('Info_Reseller_Hosting_Capacity', ['data' => $input]);

print_r($input);
print_r($output);
$input: Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 ) $output: Array ( [status] => ok [available] => 10000 [used] => 2000 [used_percent] => 20.00 )

API Manual - version from 2019-08-25 17:49:13