clockify-js-client

0.1.1 • Public • Published

clockify-js-client

A wrapper for Clockify REST APIs. For API docs Please refer developers-api.

clockify-js-client is a fork of clockify-npm

NPM Package not yet available.

Installation

npm install clockify-js-client

Examples

You can find the different methods under lib/Workspace.js.

import Clockify from 'clockify-js-client';

Clockify.SetKey('YOUR_API_KEY');

// Get all Workspaces of the current User
Clockify.Workspaces.get()
    .then((data) => {
        console.log(data)
    }).catch((err) => {
        console.error(err);
    })

// Create a new Workspace
Clockify.Workspaces.add('My Work Space')
    .then((data) => {
        console.log(data)
    }).catch((err) => {
        console.error(err);
    })

CircleCI

Package Sidebar

Install

npm i clockify-js-client

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

13.4 kB

Total Files

10

Last publish

Collaborators

  • dielok