🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

@warriorteam/esms-sdk

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@warriorteam/esms-sdk

TypeScript SDK for eSMS REST API (SMS, Zalo, Viber, Multi-channel)

latest
npmnpm
Version
0.2.3
Version published
Maintainers
3
Created
Source

eSMS TypeScript SDK

TypeScript SDK cho eSMS REST API: SMS, Zalo (ZNS), Viber, Multi-channel, và các API truy vấn.

Cài đặt

npm install esms-sdk

Khởi tạo

import { EsmsClient } from 'esms-sdk';

const esms = new EsmsClient({
  apiKey: process.env.ESMS_API_KEY!,
  secretKey: process.env.ESMS_SECRET_KEY!,
});

Ví dụ nhanh

// Gửi SMS CSKH
await esms.sendMessageV4({
  Phone: '0901888888',
  Content: 'Your OTP is 686868',
  Brandname: 'YourBrand',
  SmsType: '2',
});

// Gửi Zalo template V6
await esms.sendZaloV6({
  OAID: '4097311281936189049',
  Phone: '0901888888',
  TempID: '200607',
  TempData: { customer_name: 'A', order_code: 'HD0001' },
});

Tài liệu chi tiết

  • Tổng quan: docs/README.md
  • Bắt đầu: docs/getting-started.md
  • SMS: docs/sms.md
  • Zalo (ZNS): docs/zalo.md
  • Viber: docs/viber.md
  • Đa kênh: docs/multichannel.md
  • OTP tự sinh: docs/otp.md
  • Tài khoản & Truy vấn: docs/account-and-queries.md
  • Template & Pricing: docs/templates-and-pricing.md
  • ZNS phụ trợ: docs/zns-aux.md
  • Voice API: docs/voice.md
  • Callbacks: docs/callbacks.md

API Surface

Xem typings trong src/client.ts. Hầu hết các endpoint trong Postman collection đã được ánh xạ 1-1.

Build

npm run build

Giấy phép

MIT

Keywords

esms

FAQs

Package last updated on 27 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts