clickatell-api

Crates.ioclickatell-api
lib.rsclickatell-api
version0.3.0
sourcesrc
created_at2022-08-07 20:08:08.054332
updated_at2022-08-10 19:50:19.401338
descriptionSend messages to mobile phones via Clickatell messaging gateways
homepage
repository
max_upload_size
id640377
size31,584
Farrel Lifson (farrel)

documentation

README

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.

Commit count: 0

cargo fmt