Getting stats about reseller

psycho

Verified User
Joined
May 16, 2005
Messages
42
I am looking for an API command just like
CMD_API_SHOW_USER_USAGE
About specif reseller..

there is api command CMD_API_RESELLER_STATS
but its info about the reseller using the command...

Maybe there is an option to 'fake' the reseller that send the command just like the "Login as USER"

any idea's?
 
I haven't tried it, but does doing something like this work?
CMD_API_RESELLER_STATS?user=example

If not, then theres' now way to do it through the API. You could always get the entire CMD_RESELLER_STATS?user=example
page and then parse it for the information your looking for or you can write your own API functions.
 
jmstacey said:
I haven't tried it, but does doing something like this work?
CMD_API_RESELLER_STATS?user=example

If not, then theres' now way to do it through the API. You could always get the entire CMD_RESELLER_STATS?user=example
page and then parse it for the information your looking for or you can write your own API functions.
CMD_API_RESELLER_STATS?user=example
isn't working...

What do you mean "CMD_RESELLER_STATS?user=example
page and then parse it for the information your looking for"..
Its just make it complicated..

About write api functions - it is possible?! how? thought its da buildin option
 
CMD_RESELLER_STATS is the command CMD_API_RESELLER_STATS is based after and when logged into the directadmin interface CMD_RESELLER_STATS?user=example returns the information for the user/reseller example.

You can call this command like you do the API, just the whole page is returned instead of the API friendly way. All you'd have to do is cut out all the unwanted information and parse the rest into the desired array.

About write api functions - it is possible?! how? thought its da buildin option
Not through DirectAdmin, but it's easy enough to setup your own commands. For example I needed to retrieve the list of all Ip's on the server and not just for the reseller account that the plugin was running (CMD_API_SHOW_RESELLER_IPS) and so I created a setuid wrapper in C that collected and parsed the information directly from DirectAdmin's data files.
 
Back
Top