Module one_api

Source
Expand description

Send SMS and Whatsapp message via the Clickatell One API messaging gateweay

§One API

The Clickatell One API is a combined gateway for both SMS and Whatsapp messages.

let client = Client::new(api_key)?;

if let Ok(status_response) = client.message_status(message_id).await? {
    println!("Message Status: #{status_response}")
}

if let Ok(balance_response) = client.balance().await? {
    println!("Balance: {balance_response}");
}

Modules§

balance
message_status
send_messages

Structs§

BlockingClient
Clickatell One messaging gateway client
BlockingClientBuilder
Used to create a [Client] that can point to a different URL than the default Clickatell One gateway
Client
Clickatell One messaging gateway client
ClientBuilder
Used to create a Client that can point to a different URL than the default Clickatell One gateway

Enums§

Channel
Communication channel the message is sent on
Error

Type Aliases§

Result