Crate sendly

Crate sendly 

Source
Expand description

§Sendly Rust SDK

Official Rust client for the Sendly SMS API.

§Quick Start

use sendly::{Sendly, SendMessageRequest};

#[tokio::main]
async fn main() -> Result<(), sendly::Error> {
    let client = Sendly::new("sk_live_v1_your_api_key");

    let message = client.messages().send(SendMessageRequest {
        to: "+15551234567".to_string(),
        text: "Hello from Sendly!".to_string(),
    }).await?;

    println!("Message sent: {}", message.id);
    Ok(())
}

Structs§

BatchList
Paginated list of batches.
BatchMessageItem
A single message in a batch request.
BatchMessageResponse
Response from sending batch messages.
BatchMessageResult
Result of a single message in a batch.
CancelScheduledMessageResponse
Response from cancelling a scheduled message.
ListBatchesOptions
Options for listing batches.
ListMessagesOptions
Options for listing messages.
ListScheduledMessagesOptions
Options for listing scheduled messages.
Message
An SMS message.
MessageList
Paginated list of messages.
Messages
Messages resource for sending and managing SMS.
ScheduleMessageRequest
Request to schedule an SMS message.
ScheduledMessage
A scheduled SMS message.
ScheduledMessageList
Paginated list of scheduled messages.
SendBatchRequest
Request to send batch messages.
SendMessageRequest
Request to send an SMS message.
Sendly
Sendly API client.
SendlyConfig
Configuration for the Sendly client.

Enums§

BatchStatus
Status of a message batch.
Error
Errors that can occur when using the Sendly SDK.
MessageStatus
Message delivery status.
ScheduledMessageStatus
Status of a scheduled message.

Type Aliases§

Result
Result type for Sendly operations.