1.0.4 • Published 7 years ago

activecollabjs v1.0.4

Weekly downloads
6
License
ISC
Repository
github
Last release
7 years ago

ActiveCollab API

Install

npm install activecollabjs

Using

ac.api(method, options, callback);

Use request options. More details here

const ac = require('activecollabjs')();

ac.init({
  username: 'member@activecollab.com',
  password: 'Easy to remember, hard to guess',
  client_name: 'My Awesome App',
  client_vendor: 'ACME Inc',
  host: 'http://my.selfhost.com/activecollab/'
}, (err, response) => {
  let options = {
    json: true,
    method: 'POST',
    headers: [/* You can add custom headers */],
    body: {
      name: 'Task #1',
      labels: ['New','Deferred']
    }
  };

  ac.api('/projects/1/tasks', options, (err, response) => {
    console.log(response);
  });
});
1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago