activecollab_node_sdk
v2.0.0
Published
ActiveCollab node api sdk.
Downloads
17
Readme
Node/TypeScript SDK for ActiveCollab
Official API documentation: https://developers.activecollab.com/api-documentation/
Get help: https://stackoverflow.com/questions/tagged/activecollab
NPM Commands
| Command | Description | | ------------- | --------------------- | | npm install | Installs dependencies | | npm run build | Compiles TS to JS | | npm run tsc:w | Run TS watch |
Examples
Cloud
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);
Self-hosted
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);