Any methods return promise object.
client.contacts.find([params][, callback(err, contacts)]);
params
is object with a list of filters, not requiredcallback
is a function, not required
client.contacts.create(data[, callback(err, contact)]);
data
is a contact objectcallback
is a function, not required
client.contacts.find(id[, callback(err, contact)]);
id
is unique identifier (number) of the contactcallback
is a function, not required
client.contacts.update(id, data[, callback(err, contact)]);
id
is a contact ID (number)data
is a updated params of the contact (object)callback
is a function, not required
client.contacts.delete(id[, callback(err, state)]);
id
is unique identifier (number) of the contactcallback
is a function, not required
client.contacts.upsert(params, data[, callback(err, contact)]);
params
is object with a list of filtersdata
is a contact objectcallback
is a function, not required
var Contact = client.contacts;
new Contact(data).save([callback(err, contact)]);
data
is a contact objectcallback
is a function, not required
contact.save([callback(err, contact)]);
callback
is a function, not required
contact.delete([callback(err, state)]);
callback
is a function, not required
contact.assignNote(data[, callback(err, note)]);
data
is model of the note or stringcallback
is a function, not required
contact.assignTask(task[, callback(err, task)]);
task
is model of the taskcallback
is a function, not required
Detailed documentation in the official API
MIT
Report here.