dealsandprojects-api-client
v0.3.0
Published
A NodeJS API Client for Deals & Projects API
Downloads
2
Readme
Deals & Project Api Client
NodeJS API Client for Deals & Projects
https://dealsandprojects-helpcenter.groovehq.com/help/api-37
Install
npm i dealsandprojects-api-client --save
Example
const Client = require('dealsandprojects-api-client');
const myClient = new Client('[email protected]', 'MY_SECRET_API_KEY');
myClient.createProject({Name: 'My Project'})
.then((project) => { console.log(project); })
.catch((err) => { console.log(err); })
// take 23 tasks and skip 34
myClient.getTasks({Take: 23, Skip: 34})
.then((tasks) => { console.log(tasks); })
.catch((err) => { console.error(err )})
API
param | type ---- | ---- qs | object body | object id | number
- getContacts(qs)
- getContact(id)
- createContact(body)
- updateContact(id, body)
- getOrders(qs)
- getOrder(id)
- createOrder(body)
- updateOrder(id, body)
- getDeals(qs)
- getDeal(id)
- createDeal(body)
- updateDeal(id, body)
- getDocuments(qs)
- getDocument(id)
- createDocument(body)
- updateDocument(id, body)
- getAccounts(qs)
- getAccount(id)
- getCustomtableentries(qs)
- getCustomtableentry(id)
- createCustomtableentry(body)
- updateCustomtableentry(id, body)
- getProjects(qs)
- getProject(id)
- createProject(body)
- updateProject(id, body)
- getEntries(qs)
- getEntry(id)
- createEntry(body)
- updateEntry(id, body)
- getTasks(qs)
- getTask(id)
- createTask(body)
- updateTask(id, body)