nh314 / whmcs-helper
此包的最新版本(dev-master)没有提供许可证信息。
一个用于向WHMCS托管管理API发送请求的辅助工具。
dev-master
2017-03-13 10:09 UTC
This package is not auto-updated.
Last update: 2024-09-28 20:14:49 UTC
README
此类可以发送请求到WHMCS托管管理API。
它可以发送HTTP请求到WHMCS API以执行API支持的任意类型的操作。
该类可以带API密钥或不带API密钥发送请求。
示例代码
带有API密钥
$whmcs_api = new WhmcsHelper('http://yourdomain.com/whcms/'); $whmcs_api->setUsername('whcms_username'); $whmcs_api->setPassword('whcms_password'); $whmcs_api->ip_access = false; $whmcs_api->api_key = 'your_api_key'; //Your API key in WHCMS configuration.php file. $stats = $whmcs_api->sendRequest('getstats');
不带API密钥
$whmcs_api = new WhmcsHelper('http://yourdomain.com/whcms/'); $whmcs_api->setUsername('whcms_username'); $whmcs_api->setPassword('whcms_password'); $stats = $whmcs_api->sendRequest('getstats');
我编写这个类是为了学习目的,所以所有贡献者都欢迎加入。