Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 584 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 584 Bytes

nodejs plugin for mobtexting

This package makes it easy to send Mobtexting notifications.

Installation

You can install the package via npm:

npm install -g mobtexting-nodejs

Usage

Send an SMS

var mobtexting = require('mobtexting-nodejs')

var access_token = 'xxxxxxxxxxxxxxx'

var client = new mobtexting(access_token)

client.send(
        to="1234567890",
        from="MobTxt",
        body="Hello from nodejs!",
        service="P",
        function(result) {
                console.log(result)
        }
);