آموزش ساخت 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

 

بقیه آموزش هارو ببین شاید خوشت اومد :  غیرفعال کردن anonymous login on pure-ftp در سرور