1.0.2 • Published 9 years ago

freckle-api-v2 v1.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
9 years ago

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);
});
1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago