|
|
本帖最后由 逍遥自在 于 2020-10-4 19:43 编辑
第一步:安装Vesta
curl -O http://vestacp.com/pub/vst-install.sh
bash vst-install.sh
以下是Vesta邮局的api接口
[ol] $vst_username, 'password' => $vst_password, 'returncode' => $vst_returncode, 'cmd' => $vst_command, 'arg1' => $username, 'arg2' => $domain, 'arg3' => $acount, 'arg4' => $password);$postdata = http_build_query($postvars);$curl = curl_init();curl_setopt($curl, CURLOPT_URL, 'https://' . $vst_hostname . ':8083/api/');curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);curl_setopt($curl, CURLOPT_POST, true);curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata);$data = curl_exec($curl);if($data == 0) { echo "User account has been successfuly";} elseif($data == 4) { echo "Duplicate account";} else { echo "Error: " . $data;[/ol]复制代码
【注意:一定要在用户方案->default->邮箱账户把他修改为无限多。默认为一百个邮箱】
为什么用这个,因为这个可以收钱,卖激活码。

|
|