vexxhost / cloud-flare-api
Cloud Flare 基础 API 绑定
dev-master
2016-01-29 15:59 UTC
This package is not auto-updated.
Last update: 2020-09-14 10:22:17 UTC
README
#CloudFlare API PHP 绑定
这是 CloudFlare 客户端 API 和主机 API 的基本 PHP 绑定。[CloudFlare](https://www.cloudflare.com/) [客户端](https://www.cloudflare.com/docs/client-api.html) 和 [主机](https://www.cloudflare.com/docs/host-api.html) API。
根据传递的参数数量,您可以使用主机函数或客户端函数。
所有情况下都返回一个 PHP 对象。
##客户端 API
###使用方法
$cf = new cloudflare_api("me@example.com", "799df833d7a42adf3b8e2fd113c7260b955b8e95ac42c");
$response = $cf->stats("example.com", $cf::INTERVAL_30_DAYS);
##主机 API
###使用方法
$cf = new cloudflare_api("8afbe6dea02407989af4dd4c97bb6e25");
$response = $cf->user_create("newuser@example.com", "newpassword", "", "someuniqueid");