Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ts-beeway

webigorkiev18MIT0.1.0TypeScript support: included

Send sms by beeway.com.ua

sms, smsc, smsc lib, beeway.com.ua, sbeeway.com.ua lib, beeway.com.ua node

readme

ts-beeway

ts-beeway is a library sending sms by beeway.com.ua

Documentations

https://webigorkiev.github.io/ts-beeway/

Installation

yarn add ts-beeway

Usage

Send sms

import {beeway} from "ts-beeway";

const provider = beeway({
    token: "Basic auth password",
    from: "Aplpha name" // less 11 symbol latin or number
})

const {id}  = await provider.send({
    to: "<phone>",
    message: "sms text"
});

Fetch status sms

const {status} = await provider.status({
    id:"sms id"
});

Send viber

const {id}  = await provider.viber({
    to: "<phone>",
    message: "sms text"
});

Fetch status viber

const {status} = await provider.statusViber({
    id:"viber id"
});

Bulk sms send

mailing lists are open from 10:00 to 20:00

const {result}  = await provider.bulk({
    label: "label for batch",
    messages: [
        {
            to: "<phone>",
            message: "sms text"
        }
    ]
});

Fetch balance

const {balance}  = await provider.balance();

changelog

[0.1.0]

  • Add viber send
  • Add viber status
  • Add sms bulk send

[0.0.1]

  • Initial commit