Hello,
I have just started to look at xml-api, as before we were succesfully using old cpanel-10 scripts. Unfortunately I am unable to get started... Most of all I would like to use cpanel-api functions. I decided to start with list of email accounts. But when I post the following string:
/xml-api/cpanel?user=superdom
&apiversion=2
&xmlin=<cpanelaction><module>Email</module><func>listpopswithdisk</func><args></args></cpanelaction>
In return I get xml:
<?xml version="1.0" ?>
<cpanelresult>
<apiversion>1</apiversion>
<type>text</type>
<data>
<result>Access Denied to superdom.</result>
</data>
</cpanelresult>
Why is it like this? Why version is “1”? I am using latest stable build:
WHM 11.11.0 cPanel 11.15.0-C17944
CENTOS Enterprise 4.5 x86_64 on standard - WHM X v3.1.0
I tried to add <domain> variable to the argument list, but that did not make any difference. For authentication I use root and remote access hash string. Also when I try to access this script in browser I get the same result.
Small addon - I can get it working for account which is owned by root, but not for any account, owned by reseller. Why and how can I get it working for other accounts also?
So final question is: how can I make xmlapi (particularly /cpanel script) work for reseller accounts without knowing their HASH or password?
Regards,
Anton.
I have just started to look at xml-api, as before we were succesfully using old cpanel-10 scripts. Unfortunately I am unable to get started... Most of all I would like to use cpanel-api functions. I decided to start with list of email accounts. But when I post the following string:
/xml-api/cpanel?user=superdom
&apiversion=2
&xmlin=<cpanelaction><module>Email</module><func>listpopswithdisk</func><args></args></cpanelaction>
In return I get xml:
<?xml version="1.0" ?>
<cpanelresult>
<apiversion>1</apiversion>
<type>text</type>
<data>
<result>Access Denied to superdom.</result>
</data>
</cpanelresult>
Why is it like this? Why version is “1”? I am using latest stable build:
WHM 11.11.0 cPanel 11.15.0-C17944
CENTOS Enterprise 4.5 x86_64 on standard - WHM X v3.1.0
I tried to add <domain> variable to the argument list, but that did not make any difference. For authentication I use root and remote access hash string. Also when I try to access this script in browser I get the same result.
Small addon - I can get it working for account which is owned by root, but not for any account, owned by reseller. Why and how can I get it working for other accounts also?
So final question is: how can I make xmlapi (particularly /cpanel script) work for reseller accounts without knowing their HASH or password?
Regards,
Anton.
Last edited: