Options
All
  • Public
  • Public/Protected
  • All
Menu

ts-beeway - v0.1.0

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();

Generated using TypeDoc