Hello guys, I do not understand where I am going wrong, because to enter, list, remove, change password works. I'm using the module "api2_query" using this API -> https://github.com/CpanelInc/xmlapi-php
Change "editquota" email does not work, even searched here in the forum I had no answer.
Below and script "$ xmlapi-> api2_query" I believe what I'm using is right. Could anyone help me where I am going wrong, what is missing? I will be very grateful for someone to help me.
Email Module Documentation
Email Module Documentation
Change "editquota" email does not work, even searched here in the forum I had no answer.
Below and script "$ xmlapi-> api2_query" I believe what I'm using is right. Could anyone help me where I am going wrong, what is missing? I will be very grateful for someone to help me.
Email Module Documentation
Email Module Documentation
Code:
Email::editquota
[B]$qt = array(domain=>'domain.com', email=>'[email protected]', quota=>'12');
$result = $xmlapi->api2_query($userLogin, "Email", "editquota", $qt);
print_r($result);[/B]
// XML return below
<?xml version="1.0" ?>
<cpanelresult>
<apiversion>2</apiversion>
<data>
<reason>Account does not exist.</reason>
<result>0</result>
</data>
<error>Account does not exist.</error>
<event>
<result>1</result>
</event>
<func>editquota</func>
<module>Email</module>
</cpanelresult>