zipwhip-rs

Crates.iozipwhip-rs
lib.rszipwhip-rs
version0.6.0
sourcesrc
created_at2020-01-03 20:03:04.255903
updated_at2021-02-19 12:09:08.721387
descriptionA fast, asynchronous, and safe wrapper around the Zipwhip API
homepage
repositoryhttps://github.com/ajmwagar/zipwhip-rs
max_upload_size
id194866
size54,694
Avery Wagar (ajmwagar)

documentation

README

zipwhip-rs

Fast, asynchronous, and safe wrapper around the Zipwhip API

GitHub Actions crates.io Documentation Download Version License

Website | Examples


Features

  • Asynchronous SMS/MMS Client
  • Low-Latency, High Throughput chatbots
  • Bulk SMS/MMS functions
  • Webhook managment
  • Runtime Agnostic (using std::future::Future) (tokio is only used to run unit tests)

Send an SMS

#[tokio::main] // or `async-std`
async fn main() -> Result<(), Box<dyn std::error::Error>> {
  // Create API Client
  let zw_client = zipwhip_rs::Client::with_key("<zipwhip session key>");
  // Send SMS
  zw_client.send_sms("+12064517010", "Hello, Zipwhip-rs!").await?;
  
  Ok(())
}

Running tests

ZIPWHIP_SESSION_KEY=<key> ZIPWHIP_TEST_NUMBER=<phone_number> cargo test

Commit count: 0

cargo fmt