node-sms-send

0.1.3 • Public • Published

Comilio Node JS SMS Send

Node JS client module to send SMS messages using Comilio SMS Gateway.

To use this library, you must have a valid account on https://www.comilio.it.

Please note SMS messages sent with this library will be deducted by your Comilio account credits.

For any questions, please contact us at tech@comilio.it

Installation

$ npm install node-sms-send --save

Send a message with Classic type

const SMS = require('node-sms-send')
 
const sms = new SMS('username', 'password')
 
sms.send('+393401234567', 'Hello!')
  .then(body => console.log(body)) // returns { message_id: 'string' }
  .catch(err => console.log(err.message))

Check status of message

const SMS = require('node-sms-send')
 
const sms = new SMS('username', 'password')
 
sms.status('A95455F7031140769030CCA81E764C5F')
  .then(body => console.log(body)) // returns [ { phone_number: '+393401234567', status: 'Sent' } ]
  .catch(err => console.log(err.message))

More info

You can check out our website https://www.comilio.it

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i node-sms-send

    Weekly Downloads

    8

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    6.09 kB

    Total Files

    7

    Last publish

    Collaborators

    • franco.dalfovo