1.0.1 • Published 8 years ago

quiubas v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Quiubas NodeJS Library npm version

Installation

npm install quiubas

API Overview

Every resource is accessed via your quiubas instance:

var quiubas = require('quiubas');
// 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.setAuth( 'api_key', 'api_private' );

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

8 years ago

1.0.0

8 years ago