0.1.0-6 • Published 11 years ago

harvestapp v0.1.0-6

Weekly downloads
19
License
-
Repository
github
Last release
11 years ago

#HarvestApp API

Example:

var harvester = require("./module");

var harvest = new harvester({
  domain:"test.harvestapp.com"
  ,user:"user"
  ,pass:"pass"
});

/* Grab today's time entries */
harvest.timers.daily(null,function(e,body){
  console.log(body);
});

/* Grab yesterday's time entries */
var date = new Date();
date.setDate(date.getDate() - 1);
harvest.timers.daily(date,function(e,body){
  console.log(body);
});

/* Grab time entry by ID (#2) */
harvest.timers.dailyById(2,function(e,body){
  console.log(body);
});

/* Toggle a timer */
harvest.timers.toggle(2,function(e,body){ });

/* Toggle a timer */
harvest.timers.create({
  /* data for the timer */
},function(e,body){ });


/* Toggle a timer */
harvest.timers.delete(2,function(e,body){ });

/* Update a timer */
harvest.timers.update(2,{
  /* data for the timer */
},function(e,body){ });
0.1.0-6

11 years ago

0.1.0-5

11 years ago

0.1.0-4

11 years ago

0.1.0-3

11 years ago

0.1.0-2

11 years ago

0.1.0-1

11 years ago