A wraper for Clockify REST APIs. For API docs Please refer developers-api.
npm install clockify-npm
You can find the different methods under lib/Workspace.js
.
const Clockify = require('clockify-npm');
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);
})