Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hjfitz/node-toggl

Toggl API wrapper for node.js
https://github.com/hjfitz/node-toggl

ajax axios crypto-js es6 node timer toggl

Last synced: 28 days ago
JSON representation

Toggl API wrapper for node.js

Awesome Lists containing this project

README

        

# node-toggl
> Toggl api wrapper for node

## Installation
```zsh
yarn add toggl
```

## Usage
```js
import toggl from 'node-toggl';

// token based auth
const client = toggl.createClient({
token: 'fkjdlfhsfafdsgdd',
});

// user based auth
const client = toggl.createClient({
username: '[email protected]',
password: process.env.TOGGL_PASSWORD,
});

/**
* TODO
*/

// get all entries

// get a given entry

// stop most recent timer

// stop given timer

// start new timer

```