Hi,
Do you have a way to create a new user from shell/php? I need the option to create a user, a database/dbuser and run a few commands to automate a process.
I can do it using normal shell, but it would be best to be able to have the user set up the "cwp"-way so that it is consistent and appear correctly in the interface.
Have looked through some scripts, but I got a php-message saying that I didn't have authorization or something like that, they where also encrypted. If I just could cun the add-user script with command line arguments it would be fantastic..
Nop...
API has a method for create user account
Quoteixus
Just use in the shell cURL to execute IP:2030/api/?key=KEY&api=account_new&domain=DOMAIN&username=USERNAME&password=PASSWORD&package=PACKAGE-NUMBER&email=CLIENT-EMAIL&inode=10000&nofile=100&nproc=25
more detailed instructions can be found here
http://wiki.centos-webpanel.com/cwp-account-api
I know that is a very old post, but still no api to create accounts ?
Quote from: studio4host on August 25, 2017, 08:49:05 PM
more detailed instructions can be found here
http://wiki.centos-webpanel.com/cwp-account-api
Oops! That page can't be found.
It looks like nothing was found at this location. Maybe try a search above?
can you implement a CGI to the existing control scripts?
https://wiki.centos-webpanel.com/cwp-admin-api (https://wiki.centos-webpanel.com/cwp-admin-api)
Check this page:
https://docs.control-webpanel.com/docs/developer-tools/api-manager/functions/function-api-account/add