1.0.2 • Published 6 years ago

talktalk-super v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

node-talktalk-super

NPM

Designed for making API calls to TalkTalk Super Routers.

Installation

npm install talktalk-super

Usage

Import the SuperRouter class and create an instance:

const { SuperRouter } = require('talktalk-super');

const router = new SuperRouter('http://192.168.1.1', 'admin', 'password')

Then login and use the request function to make calls

router.login((err, res) => {
  if (err)
    return;

  router.request('/api/system/HostInfo', (err, res, html) => {
    if (err)
      return;

    print(html);
  });
});