JSPM

@quiubas/quiubas-node

1.3.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 97
  • Score
    100M100P100Q88964F
  • License MIT

Quiubas NodeJS Library for REST API

Package Exports

  • @quiubas/quiubas-node

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@quiubas/quiubas-node) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Quiubas NodeJS Library npm version

Installation

npm install @quiubas/quiubas-node

API Overview

Every resource is accessed via your quiubas instance:

var quiubas = require('@quiubas/quiubas-node');
// quiubas.{ RESOURCE_NAME }.{ METHOD_NAME }

The last two arguments of every resource method is the success and error callbacks, if no error is specified and an error occurs a throw will shown instead.

Send an SMS

var quiubas = require('@quiubas/quiubas-node');

quiubas.setAuth( 'api_key', 'api_private' );

quiubas.sms.send({
      to_number: '+52552123524',
      message: 'Hello there'
  }, (response) => {
    console.log('SUCCESS:', response);
  }, (error) => {
       console.log('ERROR:', error);
  }
);