Official API documentation: https://developers.activecollab.com/api-documentation/
Get help: https://stackoverflow.com/questions/tagged/activecollab
Command | Description |
---|---|
npm install | Installs dependencies |
npm run build | Compiles TS to JS |
npm run tsc:w | Run TS watch |
const c = new Cloud('AcmeINC', 'AcmeINC', '123', '[email protected]', 'password');
await c.issueTokenIntent();
// Attach interceptors
c.client.interceptors.request.use(onSuccess, onError);
// task lists
const taskLists = await cloud.get('/projects/1/task-lists');
console.log(taskLists.data);
const sh = new SelfHosted('https://your-url-here.com', 'AcmeINC', 'AcmeINC', '123', '[email protected]', 'password');
await sh.issueTokenIntent();
// Attach interceptors
sh.client.interceptors.request.use(onSuccess, onError);
// task lists
const taskLists = await cloud.get('/projects/1/task-lists');
console.log(taskLists.data);