0.3.0 • Published 5 years ago

dealsandprojects-api-client v0.3.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

Deals & Project Api Client

npm version

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('mymail@gmail.com', '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
qsobject
bodyobject
idnumber
  • 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)
0.3.0

5 years ago

0.2.0

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago