Expand description
§Melipayamak-rs
A Rust client library for the Melipayamak SMS API.
§Features
- Synchronous API calls
- Proper error handling
- Persian text encoding support
- Configurable API endpoints
§Example
use melipayamak_rs::MelipayamakClient;
let client = MelipayamakClient::new("username", "password");
match client.send_sms("09123456789", "5000", "Hello from Rust!") {
Ok(response) => println!("SMS sent: {:?}", response),
Err(e) => eprintln!("Error: {}", e),
}
Structs§
- Melipayamak
Client - Main client for interacting with Melipayamak API
- Send
SmsResponse - Response structure from the SendSMS API endpoint
Enums§
- Melipayamak
Error - Represents possible errors from the Melipayamak API