I'm a reseller, and I tried to access to the whm API by the script:
<?php
require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
$host = "localhost";
$user = "";
$accesshash = '';
$accts = listaccts($host,$user,$accesshash,0);
print_r($accts);
$pkgs = listpkgs($host,$user,$accesshash,0);
print_r($pkgs);
?>
The problem is that I don't have access to this directory. Anyway I know there is a way to access because whmautopilot do.
Can anyone tell me how to do it?
Tanks.
<?php
require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
$host = "localhost";
$user = "";
$accesshash = '';
$accts = listaccts($host,$user,$accesshash,0);
print_r($accts);
$pkgs = listpkgs($host,$user,$accesshash,0);
print_r($pkgs);
?>
The problem is that I don't have access to this directory. Anyway I know there is a way to access because whmautopilot do.
Can anyone tell me how to do it?
Tanks.