[][src]Crate zipwhip_rs

Zipwhip API Wrapper for Rust

zipwhip-rs is a fast, async and safe wrapper of the Zipwhip API. Zipwhip text enables buisness's landlines, and also provides an API for sending SMS/MMS message.

This crate removes wraps the API and provides easy access to sending SMS and MMS messages

This example is not tested
#[tokio::main]
 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(())
 }

Send an SMS with the message "Hello, Zipwhip-rs!"

For a more featureful example see the chatbot in the examples folder

Structs

Client

Zipwhip API Client Requires a Zipwhip session key to be used

Webhook

Rusty type representing a configured Zipwhip Webhook

Enums

WebhookEvent

Various webhook events one can listen for.

ZipwhipError

An error returned from the Zipwhip API Some of these errors are defined in the Zipwhip API specification, and are checked before sending the API request