0.1.1 • Published 3 years ago

clockify-js-client v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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