We have been working on a cpanel api from sometime now. The api is under beta release and is undergoing internal testing before its released. Many functions have already been developed and are tested working perfect.
The api is targeted towards developers who want to access whm functions however can't because of lack of api / documentation. The api tries to fill that gap.
All functions are accompanied with working demos so they can be used out of the box to plugin inside scripts.
The present functions working are:
Service Status : This function returns your server's service's status.
Server Information : This function returns complete server information.
Account List : Allows you to get accounts listing on the server. Has many multiple options, allows to show only certain details about a domain. Developer has the choice to choose which all details he wants as output/
Create Account : Create account inside cpanel
Terminate an account : Terminate account, allows the developer to terminate account using a user name / domain name. Has configurable choices.
Terminate multiple accounts : Terminate multiple accounts, works just like the terminate accounts except supports multiple accounts/
Modify Password : Modify password for a account, supports password change using a username / domain.
Suspend/Unsuspend an Account : Suspend/ unsuspend an account based on username, domain
List Suspended Accounts : Get a list of all suspended accounts
List Packages : Get a list of all packages on the server
View Bandwidth : Get bandwidth usage for a domain
List Parked Domain : View list of parked domains.
Reseller functions are being built as we speak.
ETA for launch : 10-15 days.
More information with demos will be posted soon. Next week we should be posting up a live server with the API running for any one to test it functionality.



LinkBack URL
About LinkBacks
Reply With Quote

. You could also use it in php as well, theres a function laying around for that. Anyway, its in /usr/local/cpanel/Cpanel/. I also made a script with it if you didnt already know, (CGI ServUP). Available at 







