liverail-api
Purpose
This provides a node client library to use the Liverail API.
Created by Pinion.
Installation
npm install liverail-api
Demo
var liverail = ; liverail;
var liverail = ; liverail;
API
liverail.login(username, password, [callback])
login takes 3 arguments; username, password and a callback, to which it will pass an error indicator and the results from Liverail in case you're interested in them.
liverail.call(route, [params], [callback])
call is a generic call function that will call a specified route on the liverail API. The token is added automatically, but you may pass an object with additional parameters to send to the api. You may also pass a callback, which will be called with an error indicator and the results of the API call.