ts-skarbsend
TypeScript icon, indicating that this package has built-in type declarations

0.1.8 • Public • Published

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

Package Sidebar

Install

npm i ts-skarbsend

Weekly Downloads

1

Version

0.1.8

License

MIT

Unpacked Size

361 kB

Total Files

36

Last publish

Collaborators

  • webigorkiev