Email::getdiskusage
didacrios opened this issue · comments
Dídac Rios commented
I'm doing tests with the xmlapi.php and trying to use the getdiskusage function
The documentation http://docs.cpanel.net/twiki/bin/view/ApiDocs/Api2/ApiEmail#Email::getdiskusage says that the input parameters are domain and login but didn't work when trying to acces
$opts = array(
'domain' => "domain.com",
'login' => "mail-user",
);
print $xmlapi->api2_query($server_login, "Email", "getdiskusage", $opts);
Returns:
{
cpanelresult: {
data: [
{
user: null,
domain: "domain.com",
login: null,
diskused: "0"
}
],
module: "Email",
apiversion: 2,
func: "getdiskusage",
event: {
result: 1
}
}
}
But when i use the paramters user instead of login it works OK