talktalk-super
v1.0.2
Published
Designed for making API calls to TalkTalk Super Routers
Downloads
6
Readme
node-talktalk-super
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);
});
});