node-enom-api

    1.0.2 • Public • Published

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

    Keywords

    none

    Install

    npm i node-enom-api

    DownloadsWeekly Downloads

    12

    Version

    1.0.2

    License

    none

    Last publish

    Collaborators

    • cideveloper