Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dynect-api

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynect-api

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

  • 1.0.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
increased by366.67%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 08 Jun 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc