dibenco

Registered
Jan 20, 2020
2
0
1
brazil
cPanel Access Level
Reseller Owner
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
PHP:
$ed = 'editpkg?api.version=1&name='.$name.htmlspecialchars($string,ENT_NOQUOTES);
Well. This code removes a package and works

PHP:
$de ='killpkg?pkg=' . $data;
Some functions need more privileges to run. Please, any help is welcome.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,273
313
Houston

dibenco

Registered
Jan 20, 2020
2
0
1
brazil
cPanel Access Level
Reseller Owner
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.
 
Last edited:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,273
313
Houston