Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

emartech/dme-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dme-sdk

A node module for DNSMadeEasy's V2.0 API

To use

  • Import the module
var dme = require('dme-sdk');
  • Setup config
var config = {
	apikey: <INSERT_APIKEY>,
	secret: <INSERT_APISECRET>,
	debug: false
};
  • Create client
var client = dme.createClient(config);
  • Access ManagedDNS
var mgdns = dme.ManagedDNS.createManagedDNS(client);
mgdns.getAllDomains()
	.then(function(data) {
		console.log(data);
	})
	.catch(function(err) {
		console.log(err);
	});
  • Access Usage
var usage = dme.Usage.create(client);
usage.getUsage()
	.then(function(data) {
		console.log(data);
	})
	.catch(function(err) {
		console.log(err);
	});

Working submodules

ManagedDNS

  • getDomain(domainId)
  • createDomain(payload)
  • updateDomain(domainId, payload)
  • deleteDomain(domainId)
  • deleteDomain(domainId)
  • getAllDomains()
  • updateMultipleDomains(payload)
  • deleteMultipleDomains(payload)
  • createRecordForDomain(domainId, payload)
  • updateRecordForDomain(domainId, recordId, payload)
  • deleteRecordForDomain(domainId, recordId)
  • getRecordsForDomain(domainId)
  • createRecordsForDomain(domainId, payload)
  • updateRecordsForDomain(domainId, payload)

Usage

  • getUsage()