Releases: boxlinknet/kwtsms-rust
Releases · boxlinknet/kwtsms-rust
v0.1.10
Full Changelog: v0.1.9...v0.1.10
v0.1.9
Full Changelog: v0.1.8...v0.1.9
v0.1.0
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
clifeature 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);