Designed for making API calls to TalkTalk Super Routers.
npm install talktalk-super
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);
});
});