Skip to content

cideveloper/node-enom-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
});
Option Required Description Default
uid true ENOM reseller username null
pw true ENOM reseller password null
response false xml or json xml
mode false live or testing live

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);
});

About

Node.js library for ENOM API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published