Socket
Socket
Sign inDemoInstall

harvestapp

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

harvestapp

A quick and simple Harvest timetracking/invoicing API. Couldn't get the other module to work so I wrote this real quick


Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 11 Feb 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc