CloudXNS API PHP SDK - CloudXNS系统API的 PHP SDK包


MIT
跨平台
PHP

软件简介

这是一款 智能DNS CloudXNS.net 官方推出一个款CloudXNS系统API的 PHP
SDK包,PHP的SDK包比同时发布的Python SDK更为完善,其中还包含了一个完整的HTML
demo,可以实现所有解析的管理操作,使用者直接可以拿来管理自己的域名DNS解析。

PHP >= 5.4.0

Install

If you do not have Composer, you may install it by
following the instructions at
getcomposer.org.

Install

First

Extract the archive file downloaded from CloudXNS-API-SDK-
PHP.zip

to your project. You can then install using the following command:

composer install

[](https://github.com/CloudXNS/CloudXNS-API-SDK-PHP#install-

second)Install Second

you can then install using the following command:

composer require "cloudxns/cloud-xns-api-sdk-php:*" 
cd vendor/cloudxns/cloud-xns-api-sdk-php/
composer require "hightman/httpclient:*"

Demo

use Cloudxns\Api;

$api = new Api(); 
$api->setApiKey('xxxxx'); 
$api->setSecretKey('xxxx');

//获取域名列表 
$api->domain->domainList();

//添加域名 
$arr = array("domain"=>"cloudxns.net"); 
$api->domain->domainAdd($arr);

//删除域名  $api->domain->domainDelete('/5568');