node-sms-horizon

1.2.1 • Public • Published

node-sms-horizon

Send SMS using SMS Horizon gateway in node Environment.

Getting Started

First you have to register in https://www.smshorizon.in/, then you will have a User Name, Api key and sender Id.

Prerequisites

To install node-sms-horizon , you need node.js and npm.

Installing

Once you have that set-up, just run

npm install --save node-sms-horizon

in your project directory.

Usage

node-sms-horizon send_sms(senderOption, recieverOption) returns promise and needs two parameters 'senderOption' and 'recieverOption'.

 
const send = require("node-sms-horizon")({
    user_name : // Use your User name from sms-horizon. 
    api_key : // You will get this api key after registration. 
    sender_id : //you have to create a sender Id in you sms-horizon portal. 
});
 
send('receiver phone no.',"message to send").then(response => {
    console.log(response)
}).catch(error => {
    console.error(error)
})
 

Authors

License

This project is licensed under the MIT License.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.10latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.10
1.2.00
1.1.10
1.1.00
1.0.100
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i node-sms-horizon

Weekly Downloads

0

Version

1.2.1

License

MIT

Unpacked Size

2.58 kB

Total Files

4

Last publish

Collaborators

  • subha_chandra_das