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
Well. This code removes a package and works
Some functions need more privileges to run. Please, any help is welcome.
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
PHP:
$ed = 'editpkg?api.version=1&name='.$name.htmlspecialchars($string,ENT_NOQUOTES);
PHP:
$de ='killpkg?pkg=' . $data;