Skip to content

Releases: boxlinknet/kwtsms-rust

v0.1.10

15 Mar 00:30

Choose a tag to compare

v0.1.9

15 Mar 00:05

Choose a tag to compare

Full Changelog: v0.1.8...v0.1.9

v0.1.0

06 Mar 00:23

Choose a tag to compare

kwtsms v0.1.0

Rust client library for the kwtSMS API (kwtsms.com).

Features

  • All 7 API endpoints: send, balance/verify, validate, senderid, coverage, status, dlr
  • Phone number normalization and validation (Arabic/Persian digits, deduplication)
  • Message cleaning (emojis, HTML, invisible chars, Arabic digit conversion)
  • Bulk send with auto-batching (>200 numbers), ERR013 retry with backoff
  • All 33 error codes mapped to developer-friendly action messages
  • .env file support with from_env() factory
  • JSONL logging with password masking
  • Thread-safe cached balance
  • CLI binary behind cli feature flag
  • 160 tests (unit, mock, integration)

Install

[dependencies]
kwtsms = "0.1"

Or: cargo add kwtsms

Quick Start

use kwtsms::KwtSms;

let sms = KwtSms::from_env(None).unwrap();
let result = sms.verify();
println!("Balance: {:?}", result.balance);