f1-node-api
A node wrapper for the Fellowship One API. There needed to be an easier way of interfacing with the existing api. Plus,
modular is way more awesome.
Usage
npm install f1-node-api
If you set process.env.DEVELOPMENT
all requests will hit against staging.fellowshiponeapi.com;
var fOne = require('f1-node-api');
// Returns a Fellowship One endpoint by passing a churchcode and desired route
fOne.createEndpoint(churchcode, route);
// Creates a request to Fellowship One
// @params obj {Object}
// obj = {path: '', params:'', token:'', token_secret:'', config: {}, churchcode:''}
// @params callback {Function}
fOne.f1_request(obj, callback);