freckle-api-v2

1.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i freckle-api-v2

Weekly Downloads

0

Version

1.0.2

License

ISC

Last publish

Collaborators

  • teamcolab