@redningsselskapet/pswincom-sms-gateway

1.0.2 • Public • Published

PSWinCom SMS Gateway

node.js module for sending sms messages through PSWinCom SMS Gateway.

Installation

    $ npm install @redningsselskapet/pswincom-sms-gateway

Usage

    // import node module
    const SmsGateway = require('@redningsselskapet/pswincom-sms-gateway')

    // create Sms Gateway object
    const smsGateway = SmsGateway({ username: 'myuser', password: 'mypass', sender: 'mysender' })

    // send sms message to a receiver
    smsGateway.sendSms({ receiver: '4791679501', message: 'Hello there!' })
      .then(result => {
        console.log(result)
      })
      .catch(err => {
        console.log(err)
      })

Versions

Current Tags

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

Version History

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

Package Sidebar

Install

npm i @redningsselskapet/pswincom-sms-gateway

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

4.25 kB

Total Files

10

Last publish

Collaborators

  • aslakos
  • oyvjul
  • rs-npm
  • matsgm
  • kenguru33