zipwhip-rs 0.5.4

A fast, asynchronous, and safe wrapper around the Zipwhip API
Documentation

GitHub Actions crates.io Documentation Download Version License

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