Node.js Wrapper for Meerkat API
This is a Node.js implementation of a wrapper for communicating with the
Meerkat API.
Installation Instructions
npm install --save meerkat-api
Notes
Usage
var Meerkat = require('meerkat-api');
var meerkat = new Meerkat(API_TOKEN);
process.on('SIGINT', shutdown);
process.on('SIGTERM', shutdown);
function shutdown () {
server.close(function () {
meerkat.dispose();
});
}
meerkat.getAllBroadcasts(function (err, broadcasts) {
console.log(err || broadcasts);
});
meerkat.getScheduledBroadcasts(function (err, broadcasts) {
console.log(err || broadcasts);
});
var broadcastId = '6a4da7ba-20f5-4f0d-81de-e5cf37b3072b';
meerkat.getBroadcastSummary(broadcastId, function (err, broadcasts) {
console.log(err || broadcasts);
});
meerkat.getBroadcastActivities(broadcastId, function (err, activities) {
console.log(err || activities);
});
meerkat.getBroadcastRestreams(broadcastId, function (err, restreams) {
console.log(err || restreams);
});
meerkat.getBroadcastComments(broadcastId, function (err, comments) {
console.log(err || comments);
});
meerkat.getBroadcastLikes(broadcastId, function (err, likes) {
console.log(err || likes);
});
meerkat.getBroadcastWatchers(broadcastId, function (err, watchers) {
console.log(err || watchers);
});
var userId = '54fb2e454d0000d23bb9c40f';
meerkat.getUserDetails(userId, function (err, userDetails) {
console.log(err || userDetails);
});