Clickatell Tools for Rust is a collection of clients for interacting with messaging gateways from Clickatell using Rust.
It currently consists of
clickatell-api
- Crate for interacting with Clickatell messaging gateways from Rust applicationsclikcatell-cli
- A command line tool using clickatell-api to send SMS and Whatsapp messages, check their status and retrieve account balances
use clickatell_api::one_api::{message::Channel,send_messages, Client};
let client = Client::new(api_key)?;
let mut request = send_messages::Request::new();
request.add_message(Channel::SMS, number, "This is message one")?;
request.add_message(Channel::SMS, number, "This is message two")?;
let response = client.send_messages(request).await?;
for msg_response in response.messages() {
println!("Messge ID: {} - {:?}", msg_response.to, msg_response.message_api_id);
}
- Blocking and Async One API gateway clients.
- Send text messages via SMS
- Query message status
- Account balance
- Send text messages via Whatsapp
- Media upload, download and metadata
- Send media via Whatsapp
- Message read notifications
- Whatsapp markup
Copyright 2022 Farrel Lifson
Released under the MIT License. See LICENSE-MIT for details.