talktalk-super

1.0.2 • Public • Published

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);
  });
});

Package Sidebar

Install

npm i talktalk-super

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

9.8 kB

Total Files

7

Last publish

Collaborators

  • tylerkf