loopia-api

0.1.4 • Public • Published

LoopiaAPI

A thin wrapper for https://www.loopia.se/api

Note that the username and password is created specifically for the api; it is not the regular username and password used for logging in.

Example

var loopia = require('loopia-api');
var client = loopia.createClient('username', 'password');
var domain = 'my-domain.com';

client.getSubdomains(domain, function(error, subdomains) {
  subdomains.forEach(function(subdomain) {
    client.getZoneRecords(domain, subdomain, function(error, value) {
      console.log(subdomain, value);
    });
  });
});

Readme

Keywords

none

Package Sidebar

Install

npm i loopia-api

Weekly Downloads

4

Version

0.1.4

License

none

Last publish

Collaborators

  • jakobm