Options
All
  • Public
  • Public/Protected
  • All
Menu

ts-skarbsend - v0.1.8

ts-skarbsend

Send notifications by skarbsend

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"
});

Generated using TypeDoc