List all or one (project, client, person, ...)
var Timetask = require('machinepack-timetask');
// List all or one (project, client, person, ...)
Timetask.get({
account: 'myaccount',
token: 'gfg12DF',
model: 'project',
id: 125031,
params: {},
}).exec({
// An unexpected error occurred.
error: function (err) {
},
// OK.
success: function () {
},
});
account name
'myaccount'
your token
'gfg12DF'
name of the model
'project'
id of the model
125031
params object for filtering
An unexpected error occurred.
OK.