Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email::getdiskusage #9

Open
didacrios opened this issue Jun 5, 2013 · 0 comments
Open

Email::getdiskusage #9

didacrios opened this issue Jun 5, 2013 · 0 comments

Comments

@didacrios
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant