Socket
Socket
Sign inDemoInstall

dynect-api

Package Overview
Dependencies
6
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dynect-api

A barely functional, yet servicable, Dynect Managed DNS REST API Interface


Version published
Weekly downloads
14
decreased by-17.65%
Maintainers
1
Install size
1.66 MB
Created
Weekly downloads
 

Readme

Source

dynect-api

A barely functional, yet servicable, Dynect Managed DNS REST API Interface

Installation

  • npm i dynect-api

Build your self

  • git clone https://github.com/TheNorthRemembers/dynect-api.git and then npm run build

Usage Examples (ES6)

All calls return Promises and are async and awaitable.

const Dynect = require('dynect-api');
// initialize
Dynect.init({
     customer_name: 'Customer Name',
    user_name: 'Dynect Username',
    password: 'Dynect Password',
});
// login
await Dynect.login().catch((err) => {
    // do something on error
});

// get all zones
const zones = await request('/Zone', 'GET', null).then((response) => {
	// do something with response if you want before returning it
}).catch((err) => {
    // do something with an error
});

To make a request

const response = await request(apiPath, method, data);

There are a few wrapper functions

const zones = await Dynect.getZones();
const zone = await Dynect.getZone(zonePath);

Resources

Dynect resources by topic

Keywords

FAQs

Last updated on 08 Jun 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc