1.0.2 • Published 9 years ago

node-enom-api v1.0.2

Weekly downloads
17
License
-
Repository
github
Last release
9 years ago

node-enom-api

This is a simple library to interface with the ENOM API.

Installation

npm install node-enom-api --save

Configuration

You will need an ENOM reseller account in order to use the functionality of this module. You can become an ENOM reseller here.

var Enom = require('node-enom-api');

var client = new Enom({
  uid: "resellid",
  pw: "resellpw",
  response: "xml",
  mode: "testing"
});
OptionRequiredDescriptionDefault
uidtrueENOM reseller usernamenull
pwtrueENOM reseller passwordnull
responsefalsexml or jsonxml
modefalselive or testinglive

Usage

See Configuration section above for client config

client.get(command, inputParams, function(error, ReturnedParamAndValues){
  if (error) {console.log(error)};
  console.log(ReturnedParamAndValues);
});

ENOM commands can be viewed at http://www.enom.com/APICommandCatalog/index.htm

Example

client.get('Check', {sld: "unusualTVname", tld: "tv"}, function(error, data){
  if (error) {console.log(error)};
  console.log(data);
});
1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.1

9 years ago