Hi, i have a problem with listpkgs WHM API, i try get all pkgs in a account reseller, but only show 2 packages and i have 4.
Log: Only show 2
PHP:
<?php
include("xmlapi.php");
$ip = "localhost"; //your server IP or name
$xmlapi = new xmlapi($ip); // instantiate the XML-API object
$root_hash = 'HASH';
$xmlapi->set_port(2087);
//store our auth in object
$xmlapi->hash_auth("reseller",$root_hash);
//// Optional stuff
// JSON or XML output
$xmlapi->set_output('xml');
// Debugging, great for at the console
$xmlapi->set_debug(1);
$response = $xmlapi->listpkgs();
?>
Code:
<listpkgs>
<package>
<name>reseller_10GB</name>
<_PACKAGE_EXTENSIONS></_PACKAGE_EXTENSIONS>
</package>
<package>
<name>reseller_20GB</name>
<_PACKAGE_EXTENSIONS></_PACKAGE_EXTENSIONS>
</package>
</listpkgs>