ts-beeway is a library sending sms by beeway.com.ua
https://webigorkiev.github.io/ts-beeway/
yarn add ts-beeway
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"
});
const {status} = await provider.status({
id:"sms id"
});
const {id} = await provider.viber({
to: "<phone>",
message: "sms text"
});
const {status} = await provider.statusViber({
id:"viber id"
});
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"
}
]
});
const {balance} = await provider.balance();