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