DirectAdmin Support said:
Hi Prohacker,
So you would like the API for:
1) A User's settings to be updated by a Reseller
2) A User to update his own email through the billing system.
Could you explain in more detail your key system. Wouldn't the admin username/password be stored somewhere in the billing system?
Thanks,
John
Sorry I wasn't clear earlier..
I'd just like a single edit API for editing account limits on a server, something like this:
Edit User:
Function To edit account limitations
Command CMD_ACCOUNT_EDIT
Method POST
Success Returns Text
Failure Returns Text
Form Values:
Name Value
action - edit
username - The username for account
email - Current or updated email addresss, if blank don't reset
passwd - The new password, if left blank don't reset
passwd2 - Just confirming the first one
notify yes or no - Same as the rest of your system
maxemail - Max number of email accounts allowed
maxforwarders - Max number of forwarders allowed
maxdb - Max number of databases allowed
etc..
That way a customer can purchase extra items such as databases and the server automaticly adjusts for the purchase...
I know this would be a major API change but might be nice in future billing systems...
As for the access key system, Cpanel has a system similar, in WHM you generate an access hash, this hash is used instead of the normal password of the account..
Also a small feature reqeust would be for the API, is that this all be posted to an API script on port 2222, and the script have a configuration file that only allows certain IPs or hostnames to access it...
That way if the access hash/key was intercepted it couldn't be used unless from an allowed IP...
[edit]Was just thinking, it might be a good idea for admins and resellers to be able to add allowed IPs for the API from the control panel, so resellers can setup their billing system, if they have one, to access and create users..
And I just noticed how you did the scripts for the API.. Maybe next time I should read closer
Guess my API only script really wouldn't work with the current system since the APIwould basicly only be posting to the current scripts on the control panel...[/edit]