Description

This function displays bandwidth usage for the cPanel account's domains.

 This function will include pie charts with its output.

Examples 


$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$show_bandwidth = $cpanel->api1('Stats','showbandwidth'); // Call the function.

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $show_bandwidth = $cpliveapi->api1('Stats','showbandwidth'); # Call the function.

 

<cpanel Module="Stats::showbandwidth()">
cpapi1 --user=username Stats showbandwidth

The output contains HTML that indicates the bandwidth usage.

Parameters

This function does not accept parameters.

Returns

This function displays HTML that contains the bandwidth usage.