Hello guys,
I am trying to implement a couple of things by using some of the APIs provided by cPanel, however I decided to check if they worked using the web interface by calling the functions using the URL. I tried using the following function to get a user's account data using his domain,
https://example.net:2087/json-api/domainuserdata?domain=example.com
But I'm getting the following error:
{"cpanelresult":{"apiversion":"2","error":"Token denied","data":{"reason":"Token denied","result":"0"},"type":"text"}}
To ensure that it wasn't a problem with the permissions, I used the root account to call the function but I get the same thing there as well.
I am trying to implement a couple of things by using some of the APIs provided by cPanel, however I decided to check if they worked using the web interface by calling the functions using the URL. I tried using the following function to get a user's account data using his domain,
https://example.net:2087/json-api/domainuserdata?domain=example.com
But I'm getting the following error:
{"cpanelresult":{"apiversion":"2","error":"Token denied","data":{"reason":"Token denied","result":"0"},"type":"text"}}
To ensure that it wasn't a problem with the permissions, I used the root account to call the function but I get the same thing there as well.