CloudXNSAPIPHPSDKV1.0, adding DDNS and other features

Source: Internet
Author: User
CloudXNSAPIPHPSDKV1.0 and DDNS are added. this is a php sdk package officially launched by CloudXNS.net for the CloudXNS system API. The php sdk package is more complete than the Python SDK released at the same time, it also contains a complete HTML demo, which can be used to manage all resolution operations. users can directly manage their own domain name DNS resolution.

CloudXNS-API-SDK-PHP instructions for use 1 Environment version requirements

PHP> = 5.4.0

Depends on guzzlehttp version 5.3

2 Installation steps

2.1 install Composer if you have not installed Composer, you can install it through getcomposer.org.

2.2 install and run the CloudXNS api sdk example 2.2.1 download and install the SDK source code

You can download the zip package from the CloudXNS-API-SDK-PHP.zip and unzip it and run the following command:

composer install
2.2.2 modify API KEY

Modify the php file in the demo folder or the api key in the demo. php file in the html Directory:

$ Api-> setApiKey ('xxxxxxxxxxxx'); // modify it to your own api key $ api-> setSecretKey ('xxxxxxxxxx'); // modify it to your own SECERET KEY
2.2.3 execute php files in demo or access html files in html. 2.3 use CloudXNS api sdk 2.3.1 use composer to install source files.

Switch to the directory where the SDK source code is to be stored and run the following command:

composer require "cloudxns/cloud-xns-api-sdk-php:*" composer require "guzzlehttp/guzzle: ~5.0"
2.3.2 use SDK examples in the program. For more information, see the demo folder.
Require_once '. /vendor/autoload. php '; // for reference only. for details, refer to the path in the project. $ api = new CloudXNSApi (); $ api-> setApiKey ('xxxxxxxxxxxx '); // modify it to your own api key $ api-> setSecretKey ('xxxxxxxxxxxx '); // modify it to your own seceret key // Obtain the domain name list $ api-> domain-> domainList (); // add a domain name $ arr = array ("domain" => "cloudxns.net"); $ api-> domain-> domainAdd ($ arr ); // delete the domain name $ api-> domain-> domainDelete ('20140901 ');

Click here to download the CloudXNS api php sdk address

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.