Skip to content

alexiob/dme-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 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()

About

DNSMadeEasy's V2.0 API Client

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%