eskiz-client
v1.0.1
Published
Simple and well-structured Eskiz.uz SMS API wrapper for Node.js/TypeScript projects
Maintainers
Readme
eskiz-client
A simple, modern, and type-safe Node.js/TypeScript client for Eskiz.uz SMS API.
✨ Features
- 🚀 Simple to use
- ✅ TypeScript support
- 🔐 Automatic token management
- 🔁 Reusable and extensible architecture
📦 Installation
npm install eskiz-client⚙️ Usage
send to one phone number
import { EskizClient } from "eskiz-client";
const client = new EskizClient({
email: "[email protected]",
password: "yourPassword",
});
await client.sms.send({
to: "998901234567",
message: "Salom!",
from: "4546", // optional
callbackUrl: "", // optional
});send to multiple phone numbers
import { EskizClient } from "eskiz-client";
const client = new EskizClient({
email: "[email protected]",
password: "yourPassword",
});
await client.sms.sendBatch({
messages: [{ userSmsId: "123123a", to: "998901234567", message: "Salom" }]
from: "4546", // optional
callbackUrl: "", // optional
});send to global phone number
import { EskizClient } from "eskiz-client";
const client = new EskizClient({
email: "[email protected]",
password: "yourPassword",
});
await client.sms.sendGlobal({
to: "998901234567",
message: "Salom!",
from: "4546", // optional
callbackUrl: "", // optional
});