This module is a client for the reportr API. The APi is promsie based.
$ npm install reportr-api
var Reportr = require("reportr-api");
// Create a client instance
var client = new Reportr({
host: "http://example.com",
auth: {
username: "Me",
password: "test"
}
});
// Post an event
client.postEvent("test", {
a: 1
});