Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
msg91-promise
Advanced tools
Changelog
[0.1.2] - 2017-11-16
Readme
Promise based Msg91 API for node.js
npm install msg91-promise -S
yarn add msg91-promise
1 - Promotional Route
4 - Transactional Route
const msg91 = require('msg91-promise');
const API_KEY = 'XXXXXXXXXXXXXXXXXXXX'; // Your API key
const SENDER_ID = 'TESTPR'; // Your sender id
const ROUTE = 4; // transactional route
const msg91SMS = msg91(API_KEY, SENDER_ID, ROUTE);
const mobileNo = 'XXXXXXXXXX';
msg91SMS.send(mobileNo, 'MESSAGE')
.then(response => console.log(response))
.catch(err => console.log(err));
// can also send sms to an array of numbers
const mobileList = ['XXXXXXXXXX', 'XXXXXXXXXX', 'XXXXXXXXXX'];
msg91SMS.send(mobileList, 'MESSAGE')
.then(response => console.log(response))
.catch(err => console.log(err));
// mobile numbers can be inside a CSV file
const mobileNoCSV = 'XXXXXXXXXX,XXXXXXXXXX,XXXXXXXXXX';
// pass the CSV file containing mobile numbers
msg91SMS.send(mobileNoCSV, 'MESSAGE')
.then(response => console.log(response))
.catch(err => console.log(err));
// check your balance
msg91SMS.getBalance()
.then(response => console.log(response))
.catch(err => console.log(err));
// get balance for a particular route
msg91SMS.getBalance(ROUTE)
.then(response => console.log(response))
.catch(err => console.log(err));
FAQs
Promise based API For MSG91 SMS Gateway. - It is not an official version of MSG91
The npm package msg91-promise receives a total of 6 weekly downloads. As such, msg91-promise popularity was classified as not popular.
We found that msg91-promise demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.