A client of DNSPod
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src listen the connection error Jan 25, 2014
test make the method chainable Nov 14, 2012
.gitignore
LICENSE.md start with 0.1.0 Oct 20, 2012
README.md make the method chainable Nov 14, 2012
package.json listen the connection error Jan 25, 2014

README.md

Dnspod-client

Dnspod-client is a client of DNSPod. It was originally designed for use with node.js.

Quick Examples

var Dnspod = require('dnspod-client'),
    client = new Dnspod({
        'login_email': 'test@test.com',
        'login_password': 'test'
    });

client
    .domainList({length: 5})
    .on('domainList', function (err, data) {
        if (err) {
            throw err;
        } else {
            done();
        }
    });

client
    .getHostIp()
    .on('getHostIp', function (err, message) {
        if (err) {
            throw err;
        } else {
            console.log('get IP address: ' + message);
            done();
        }
    });

Download

You can install using Node Package Manager (npm):

npm install dnspod-client

License

Copyright (c) 2012 Chao Shen. This software is licensed under the BSD License.