Git Product home page Git Product logo

node-toggl-api's Introduction

toggl-api

Toggl API for Node.js. Library is based on official Toggl API documentation.

Installation

npm install toggl-api --save

How to use

var TogglClient = require('toggl-api');
var toggl = new TogglClient({apiToken: '1971800d4d82861d8f2c1651fea4d212'});

toggl.startTimeEntry({
  description: 'Some cool work',
  billable:    true
}, function(err, timeEntry) {
  // handle error

  // working 10 seconds
  setTimeout(function() {
    toggl.stopTimeEntry(timeEntry.id, function(err) {
      // handle error

      toggl.updateTimeEntry(timeEntry.id, {tags: ['finished']}, function(err) {
        toggl.destroy()
      });
    });
  }, 120000);
});

Documentation

Documentation is available at: http://7eggs.github.io/node-toggl-api/

TODO

  • TESTS
  • Update argument quantity logic on all calls
  • Documentation in Markdown format
  • Remove custom data validator
  • v9 migration
    • add support for new endpoints:
      • /workspaces/{workspace_id}/clients/{client_id}/archive
      • /workspaces/{workspace_id}/clients/{client_id}/restore
      • /organizations/{organization_id}/invitations/{invitation_code}/resend
      • /organizations/invitations/{invitation_code}/accept
      • /organizations/invitations/{invitation_code}/reject

node-toggl-api's People

Contributors

rzfzr avatar estliberitas avatar mcmxc avatar estebene avatar markdicksonjr avatar mardaneus86 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.