|
|||
|
XML-API 1.0 beta
We have finished a beta that including the Accounting actions.
We have attached the code for testing. Available functions: 1. createacct($array) -> create new account (see examples.php for a demo). 2. accountsummary($user) -> return account details 3. modifyacctdomain($user , $newdomain , $currentdomain=optional) modify the username primary domain 4. modifyacctuser($current_user , $new_user) -> changing the current username 5. editquota($user , $newquota) -> modify user quota 6. changepw($user , $pass=optional) -> change user password (if you dont set the pass, a new password 8char will be generated. 7. suspendacct($user , $reason) -> suspend an account 8. unsuspendacct($user) -> unsuspend account 9. removeacct($user , $keepdns) -> remove an account 10. listacct() -> list all server accounts 11. searchacct($search, $searchtype) -> allowed search types, domain,owner, user, ip, package. 12. changeacctpackage($user,$newpackage) -> not working at the moment. so please ask if you dont understand something. have any idea? just say it and if its ok we will implement it. @see examples.php for a account creation demo. Every function will return an array which looks like: PHP Code:
listacct() returns something like this: access a user from list simple $result['get']['username'] PHP Code:
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| xml-api/accountsummary | monaghan | cPanel and WHM Discussions | 4 | 06-25-2008 04:57 PM |
| XML-API is any of these possible? | neo4242002 | Developer Discussions | 3 | 03-17-2008 02:46 PM |
| xml-api connection | eugui | Developer Discussions | 1 | 02-20-2008 01:00 PM |
| XML API: always get login screen, not XML | sldff3ald | Developer Discussions | 3 | 09-19-2007 10:29 AM |
| How do I use the xml - api? | rhopperger | Developer Discussions | 3 | 05-19-2007 09:07 AM |