node-gandi
Node.js client for Gandi.net XML-RPC API.
Installation
$ npm install --save node-gandi
Usage
Start by instantiating a Gandi client
var cli = ;var apikey = 'your-24-char-apikey';var gandi = apikey; // or new cli(apikey, true); for OT&E
The client exposes four methods to use in your code.
gandi.call (method, params, callback)
Returns the result(s) of the API call to the method given in parameter.
var gandi = apikey true;var domain = 'pegase745.org';var {if datadomain == 'pending'consoleelseconsoledirdata;}gandi;
gandi.list (callback)
Returns the list of available methods in the API.
var gandi = apikey true;gandi;
gandi.signature (method, callback)
Returns the signature of the API method given in parameter.
var gandi = apikey true;gandi;
gandi.help (method, callback)
Returns a help for the API method given in parameter.
var gandi = apikey true;gandi;
Run tests
$ sudo ote_apikey=your-24-char-apikey npm test
License
MIT