Namespace: CannedIO

CannedIO

Start namespace
Author:
  • Bruno Morceli - pirofagista@gmail.com
Source:

Example

const CaneedIO = require('node-cannedio');

...

// get a specific category
CaneedIO.api.category
.get(categoryId)
.then(cat => console.log('my category:', cat.toJSON()))
.catch(error => console.log('error on try to get category:', error));

// get all responses
CaneedIO.api.response
.list()
.then(responses => console.log('responses:', responses.length))
.catch(error => console.log('error on try to get response list:', error));