Dev License: This installation of WHMCS is running under a Development License and is not authorized to be used for production use. Please report any cases of abuse to abuse@whmcs.com

API General Functions Print

  • 0

GENERAL FUNCTIONS
The following table explains the additional parameters needed by the General Functions and provides an example of their output when status is 'success'.


getBalance
Parameters
advanced   => True for Calls Statistics
Output
Array
(
    [status] => success
    [balance] => Array
        (
            [current_balance] => 112.192790
            [spent_total] => 21.05321
            [calls_total] => 2788
            [time_total] => 10:17:48
            [spent_today] => 0.1205
            [calls_today] => 5
            [time_today] => 10:50
        )

)
                            
getCountries
Parameters
country    => Code for a specific Country (Example: 'CA')
Output
Array
(
    [status] => success
    [countries] => Array
        (
            [0] => Array
                (
                    [value] => CA
                    [description] => Canada
                )
        )
)
                            
getIP
Parameters
No Parameter
Output
Array
(
    [status] => success
    [ip] => 174.132.203.114
)
                            
getLanguages
Parameters
language   => Code for a specific Language (Example: 'en')
Output
Array
(
    [status] => success
    [languages] => Array
        (
            [0] => Array
                (
                    [value] => en
                    [description] => English
                )
        )
)
                            
getServersInfo
Parameters
server_pop => POP for a specific Server (Example: 1)
Output
Array
(
    [status] => success
    [servers] => Array
        (
            [0] => Array
                (
                    [server_name] => Houston, TX
                    [server_shortname] => Houston
                    [server_hostname] => houston.voip.ms
                    [server_ip] => 209.62.1.2
                    [server_country] => USA
                    [server_pop] => 1
                )
        )
)
                            

Was this answer helpful?

« Back

Powered by WHMCompleteSolution