Control Web Panel
Developers => Scripts => Topic started by: ixus on April 24, 2015, 03:24:11 PM
-
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
-
ixus
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 ?