You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@walkover/msg91

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@walkover/msg91

Official Wrapper of MSG91 API

0.1.2
latest
Source
npmnpm
Version published
Weekly downloads
6
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Official NodeJS Wrapper for MSG91 API

Documentation

The documentation for the MSG91 API can be found here

The Node library v1.0 documentation can be found here.

DLT Scrubbing

You can get your content template approved by desginated TRAI authorities. We have made a comprehensive document here

Documentation

The documentation for the MSG91 API can be found here

The Node library v1.0 documentation can be found here.

Sample Usage


var msg91 = require("@walkover/msg91")("API_KEY", "SENDER_ID", "ROUTE_NO" );


/**
 * Mobile number should be with International dialling code. Ex - 91 for India, 44 for UK. 
 *
 * @param {mobileNo} Accepts single number
 * @param {mobileNo} Accepts array of the phone number.
 * @param {mobileNo} Accepts CSV string.
 */

var mobileNo = "XXXXXXXXXX";

var mobileNo = [ "XXXXXXXXXX", "XXXXXXXXXX", "XXXXXXXXXX" ];

var mobileNo =  "XXXXXXXXXX,XXXXXXXXXX,XXXXXXXXXX";

msg91.send(mobileNo, "MESSAGE", "DLT_TE_ID", function(err, response){
    console.log(err);
    console.log(response);
});

Get Balance for a route

// Default 
msg91.getBalance(function(err, msgCount){
    console.log(err);
    console.log(msgCount);
});

// Get Balance for given Route.
msg91.getBalance("ROUTE_NO", function(err, msgCount){
    console.log(err);
    console.log(msgCount);
});

Getting help

Please reach out to us on support@msg91.com

MSG91 Variables

ROUTE_NO

1 - Promotional Route
4 - Transactional Route
106 - SendOTP Route

Keywords

msg91

FAQs

Package last updated on 22 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts