1.0.3 • Published 3 years ago
tripleapi v1.0.3
Triple
Welcome to the Triple API wrapper.
This was made by Tom (Owner). Our website can be viewed at https://itstriple.net.
Our original API can be viewed at https://api.itstriple.net with valid routes being:
- /stats
- /streams
- /history
Wrapper Documentation
Below you can see a simple example:
const triple = require('tripleapi');
async function run() {
console.log(`Listeners: ${await(triple.listeners())}`);
console.log(`Now Playing: ${await(triple.nowplaying())}`);
console.log(`Live DJ: ${await(triple.dj())}`);
console.log(`Artwork: ${await(triple.artwork())}`);
};
run();
Retrive all stats and output in a JSON format:
const triple = require('tripleapi');
async function run() {
console.log(await(triple.all()));
};
run();