Hello everybody.
I've got some problems with API. I'm trying to use CMD_API_MODIFY_USER command to change "suspend at limit" between ON and OFF (and vice versa).
I'm using httpsocket.php class.
Query string looks like:
And it returns me
So as I presum it works fine but...
When I log into DA and check account settings (or via CMD_API_SHOW_USER_CONFIG) it says that it still have an old value.
Using forum and search box I've found example with additional bandwidht
So, if one problem is solved. Could anyone tell me (or give some clue) how to get users who have exceeded bandwidth with API?
Comparing one by one usage and limits is very time-consuming and it's not optimal.
Thanks for help!
Best Regards
Piotr.
I've got some problems with API. I'm trying to use CMD_API_MODIFY_USER command to change "suspend at limit" between ON and OFF (and vice versa).
I'm using httpsocket.php class.
Query string looks like:
Code:
$fsock->query('/CMD_API_MODIFY_USER',array('action'=>'single','suspend_at_limit'=>'ON','user'=>$user));
And it returns me
error=0&text=User Modified&details=
So as I presum it works fine but...
When I log into DA and check account settings (or via CMD_API_SHOW_USER_CONFIG) it says that it still have an old value.
Using forum and search box I've found example with additional bandwidht
Code:
$fsock->query('/CMD_API_MODIFY_USER',array('action'=>'single','additional_bandwidth'=>1000,'additional_bw'=>'whatever','user'=>$user));[/quote] which works fine.
My question is: where the hell I'm making mistake while changing "suspend at limit" value. Of course I'm using "POST" method.
[COLOR="Red"]UPDATE[/COLOR]
Ok, got the solution. There it should be like that:
[code]$fsock->query('/CMD_API_MODIFY_USER',array('action'=>'customize','suspend_at_limit'=>'ON','user'=>$user));
So, if one problem is solved. Could anyone tell me (or give some clue) how to get users who have exceeded bandwidth with API?
Comparing one by one usage and limits is very time-consuming and it's not optimal.
Thanks for help!
Best Regards
Piotr.
Last edited: