ts-skarbsend
v0.1.9
Published
Send notifications by skarbsend
Downloads
9
Readme
Documentations
https://webigorkiev.github.io/ts-skarbsend/
Installation
yarn add ts-skarbsend
Notification
Send notification
import {skarbsend} from "ts-skarbsend";
const provider = skarbsend({
token: "<token>",
from: "Aplpha name" // less 11 symbol latin or number
})
const {id} = await provider.send({
phone: "<phone>",
text: "sms text"
});
Fetch status notification
const {status} = await provider.status({
id:"sms id"
});
Send batch notification
Send batch
import {skarbsend} from "ts-skarbsend";
const provider = skarbsend({
token: "<token>",
from: "Aplpha name" // less 11 symbol latin or number
})
const {id} = await provider.sendBatch({
rows: [{
phone: string,
text: string
}]
});
Fetch status notification
const {status} = await provider.statusBatch({
id:"batch id"
});