* @link https://www.cloudxns.net/ * @copyright Copyright (c) 2015 Cloudxns. */ require_once '../vendor/autoload.php'; $api = new \CloudXNS\Api(); $api->setApiKey('xxxxxxxxxx'); $api->setSecretKey('xxxxxxxxxx'); $api->setProtocol(true); /** * 域名列表 * * @return string */ echo $api->domain->domainList(); /** * 域名的添加 * * @param string $domain 域名的名称 * @return string */ echo $api->domain->domainAdd('bbbegulle.com'); /** * 域名的删除 * * @param integer $id 域名ID * @return string */ echo $api->domain->domainDelete(57217);