软件简介
这是一款
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
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');