Calling the cPanel API 2 as end-user

cascer1

Registered
Mar 26, 2014
4
0
1
cPanel Access Level
Root Administrator
Hello,

I'm working on a little application to help customers manage their accounts from their phone (based on an app that was offered me for $1000/year..).

I figured it would be safest to not have the root login in the source code (I know it's compiled and all, but people always figure out how to decompile something) and so I wanted to call the API as a regular user.

Unfortunately, I always get the following error when trying to perform any call as user:
<error>Execution of <function> is not permitted inside of webmail (api2)</error>

How would I go about calling the API as a regular cPanel user?

Thank you,
Cas
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
I am happy to see the issue is now resolved. Thank you for updating us with the outcome.