Timetask.add()

Add (project, task, time,...)

Usage

Hover over inputs/exits for more info.

var Timetask = require('machinepack-timetask');


// Add (project, task, time,...)

Timetask.add({

account: 'myaccount',

token: 'gfg12DF',

model: 'project',

params: { name: 'Mon Atelier' },

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

account required

account name

'myaccount'
token required

your token

'gfg12DF'
model required

name of the model

'project'
params required

params object

{ name: 'Mon Atelier' }

Exits

error

An unexpected error occurred.

success

OK.