Problems using whm api
I need help using whm api because some functions fail. Using token authentication: yes.
I'm testing whm api using token, some functions work but other shows a message: Permission denied: You do not have the required privileges to run limitbw. Another problem is editpkg function. This works but it edit nothing at all. So this is my code. Where string variable is param=value pairs
[CODE=php]
$ed = 'editpkg?api.version=1&name='.$name.htmlspecialchars($string,ENT_NOQUOTES);
Well. This code removes a package and works [CODE=php] $de ='killpkg?pkg=' . $data;
Some functions need more privileges to run. Please, any help is welcome.
Well. This code removes a package and works [CODE=php] $de ='killpkg?pkg=' . $data;
Some functions need more privileges to run. Please, any help is welcome.
-
Thanks. I've been reading but I didn't find about more privileges using functions. What do you mean by more privileges? I checked all privileges on manage api tokens. 0 -
I checked all privileges on manage api tokens.
To clarify at WHM>>Development>>Manage API Tokens -> Token Name -> Edit -> You've selected all privileges for the API Tokens you're using for this? There's a lot of information that may be useful for your situation on the editpkg function's page as well: WHM API 1 Functions - editpkg - Developer Documentation - cPanel Documentation0
Please sign in to leave a comment.
Comments
3 comments