Crate melipayamak_rs

Source
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§

MelipayamakClient
Main client for interacting with Melipayamak API
SendSmsResponse
Response structure from the SendSMS API endpoint

Enums§

MelipayamakError
Represents possible errors from the Melipayamak API