semaphore.co-sms

1.0.2 • Public • Published

Node semaphore.co-sms

NPM

Intro

This package just implements the API available for semaphore.co. They don't have one for nodejs.

Installation

npm install semaphore.co-sms

Environment File

  • create .env file
SEMAPHORE_API_KEY=apikey

Usage

const Semaphore = require('semaphore.co-sms');
 
let SendSMS = async () => {
    let obj = {
        apikey: apikey, // or you can put the api key in an .env file as SEMAPHORE_API_KEY
        number: '09123456789',
        message: `What's up madlang people?`,
        sendername: 'SEMAPHORE', // or the sendername you applied for
    };
    let response = await Semaphore.send(obj);
    console.log(response);
};
 
SendSMS();

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i semaphore.co-sms

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

3.66 kB

Total Files

5

Last publish

Collaborators

  • zabsalahid