3 unstable releases
0.3.0 | Aug 10, 2022 |
---|---|
0.2.1 | Aug 7, 2022 |
0.2.0 | Aug 7, 2022 |
#22 in #sms
31KB
694 lines
Clickatell API
Clickatell API is a crate for interacting with Clickatell messaging gateways from Rust applications
Clickatell API Example
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);
}
Features
- Blocking and Async One API gateway clients.
- Send text messages via SMS
- Query message status
- Account balance
Untested Features
- Send text messages via Whatsapp
Features To Implement
- Media upload, download and metadata
- Send media via Whatsapp
- Message read notifications
- Whatsapp markup
License
Copyright 2022 Farrel Lifson
Released under the MIT License. See LICENSE-MIT for details.
Dependencies
~5–20MB
~265K SLoC