1.0.0 • Published 5 years ago

wrunity v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Overview

Manage authentication tokens for Webroot's Unity API.

Install

    npm -i wrunity

Use

Call a new wrunity object with your api and console keys:

const Unity = require('wrunity');
const unity = new Unity(<apiKey>, <apiSecret>, <consoleUsername>, <consolePassword>);

// grab a current auth token
unity.getToken()
  .then(result => console.log(result))
  .catch(err => console.log(err))

// come back any time
setInterval(function(){}
  unity.getToken()
    .then(result => console.log(result))
    .catch(err => console.log(err))
}, 150000)

Changelog

  • 1.0.0
    • axios based rewrite
    • Shift focus to managing authentication token.
1.0.0

5 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago