Skip to content

petereitz/wrunity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Connection manager for Webroot's Unity API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published