1.1.0 • Published 4 years ago

mobyt.js v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Mobyt

Mobyt is a framework for send SMS in Node.js applications.

Node.js (Install)

Requirements:

  • Node.js
  • npm (Node.js package manager)
npm install mobyt.js

Usage

Including all libraries, for access to extra methods:

var Mobyt = require('mobyt.js');

var mobyt = new Mobyt("user", "password");

var MESSAGE_HIGH_QUALITY = "N";
var MESSAGE_MEDIUM_QUALITY = "L";
var MESSAGE_LOW_QUALITY = "LL"; 

var smsData = {
  "returnCredits": true,
  "recipient": ["+393471234567", "+393471234568"],
  //"scheduled_delivery_time": "20171223101010",
  "message": "Hello world!",
  "message_type2": MESSAGE_HIGH_QUALITY
};

mobyt.SendSMS(smsData,
  function(error, data) {
      if (error) {
          console.log("An error occurred");
      }
      else {
          console.log('order_id: ' + data);
          console.log("SMS Sent!");
      }
  });
1.1.0

4 years ago

1.0.0

4 years ago