0.1.8 • Published 2 years ago

ts-skarbsend v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago