Freckle API V2
This repo is for integrating with the Freckle API to pull down user/entry info for running reports. It currently only supports GET requests, and has been successfully tested with users
and entries
resources using Node 6.2.0.
Installation
npm install freckle-api-v2
Usage
const key = "test_key";
const freckle = require('freckle-api-v2');
const api = new freckle.FreckleApi("MY-API-TOKEN", "MY-USER-AGENT");
let options = {
from: '2016-10-01',
to: '2016-10-31'
};
api.get('entries', options);
api.on("end", (results) => {
console.log(results);
});
api.on("error", (error) => {
console.log(error);
});