آموزش centos web panel
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

آموزش ساخت CWP Account API

آموزش ساخت CWP Account API

آموزش ساخت CWP Account API

Instructions for using CWP Account API

AVAILABLE FUNCTIONS:
– Create New Account
– Remove Account
– Suspend Account
– Unsuspend Account

 

API USAGE INSTRUCTIONS
In file “/usr/local/cwp/.conf/api_allowed.conf” you need to add your remote IP address, one per line.
In file “/usr/local/cwp/.conf/api_key.conf” you need to add your API key which will be used for remote access authorization.
You can have only one key.

New Account example

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

New Account test Example:

http://111.112.113.114:2030/api/?key=4235r3f33s2&api=account_new&domain=cwptest.com&username=cwptest&password=gew42f4&package=1&email=email@mail.mail&inode=10000&nofile=100&nproc=25

Remove Account example

IP:2030/api/?key=KEY&api=account_remove&username=USERNAME

Suspend Account Example

IP:2030/api/?key=KEY&api=account_suspend&username=USERNAME

Unsuspend Account example

IP:2030/api/?key=KEY&api=account_unsuspend&username=USERNAME

Unblock IP in CSF Firewall

IP:2030/api/?key=KEY&api=unblock_ip&user_ip=121.122.123.124

WHMCS module developed by one of the clients:
https://www.sendspace.com/file/y9bkrk
http://uploaded.net/file/orj6qgy5
http://www.speedyshare.com/mnthv/whmcs-cwp.zip

For custom api development you can contact us
http://centos-webpanel.com/contact

You can generate a random key by using this website
https://www.random.org/passwords/?num=5&len=20&format=html&rnd=new