dnspod-client

A DNSPOD Client

Dnspod-client

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

var Dnspod = require('dnspod-client'),
    client = new Dnspod({
        'login_email': 'test@test.com',
        'login_password': 'test'
    });
 
client
    .domainList({length: 5})
    .on('domainList', function (errdata) {
        if (err) {
            throw err;
        } else {
            done();
        }
    });
 
client
    .getHostIp()
    .on('getHostIp', function (errmessage) {
        if (err) {
            throw err;
        } else {
            console.log('get IP address: ' + message);
            done();
        }
    });
 

You can install using Node Package Manager (npm):

npm install dnspod-client

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