PDA

View Full Version : GET User history



guido
10-25-2006, 06:26 AM
Here I am again,

I didn't worked with the API for a long time (1 year), but see I didn't expanded that much ;)

Our CMS (www.viviancms.nl) is currently providing our clients more power and information by giving them controle over their website, but also stuff like email addresses and information about usage.

Usage; that is something where I want to drop a question/request. Is it possible to extend the API with the possibilities to GET the user history. So what did they used (traffic and storage) in the last months.
(Did you know I only discovered this features in DirectAdmin just today!!!)

This would be a great extention of the API features, because then we can provide our clients with history data (for example in a graph).

Thanks in Advance

guido
10-30-2006, 01:50 AM
Come on DA admin team... :D

DirectAdmin Support
10-30-2006, 05:38 PM
Hello,

FYI, we are always expanding the API.. we usually add a few more functions each release.

The full list of new items is here:
http://www.directadmin.com/search_versions.php?query=CMD_API

And the feature you want already exists:
http://www.directadmin.com/features.php?id=377

Sample queries:

User:
:2222/CMD_API_USER_HISTORY

Reseller:
:2222/CMD_API_USER_HISTORY?user=bob

This API function was released 2 years ago ;)
1.22 Released May 30 2004


And for even more detailed graphs, you can do daily graphs with each service bandwidth with this API:
http://www.directadmin.com/features.php?id=648

John