🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

dme2

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dme2

This module allows one to connect to DNSMadeEasy's APIs (V2.0)

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

dme2-node

A node module for DNSMadeEasy's V2.0 API

To use

  • Import the module

      var dme = require('dnsmadeeasy');
    
  • Setup config

      var config = {
      	apikey: <INSERT_APIKEY>,
      	secret: <INSERT_APISECRET>,
      	debug: false
      };
    
  • Create client

      var client = dme.createClient(config);
    
  • Access ManagedDNS

      var mgdns = new dnsmadeeasy.ManagedDNS(client);
      mgdns.getAllDomains(function(err, data){
      	if (err) console.log(err);
      	var domains = data.data;
      	domains.forEach(function(domain){
      		mgdns.getDomain(domain.id, function(err, data){
      			if (err) console.log(err);
      			console.log(data);
      		});
      	});
      });
    

Working submodules

  • ManagedDNS
  • SOA
  • Template
  • VanityDNS
  • AccountACL
  • Failover
  • Folder
  • IPSet
  • QueryUsage
  • SecondayDNS

Notes

All api calls require a callback that exposes the error (if any) and the data ex.

function(err, data)

To know exactly what parameters to pass in the data envelope, consult the DNSMadeEasy API V2.0 Documentation by going here

Todo

  • Provide significantly better documentation
  • Provide better comments in the code itself

License

GPL

Keywords

dnsmadeeasy

FAQs

Package last updated on 06 Apr 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts