Skip to content

SubhaChandraDas/node-sms-horizon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Send SMS using sms-horizon in node Environment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published