clockify-js-client
v0.1.1
Published
ES6 Rest Client for Clockify https://clockify.me
Downloads
3
Maintainers
Readme
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);
})