12 releases
0.6.0 | Feb 19, 2021 |
---|---|
0.5.4 | Jun 3, 2020 |
0.5.3 | Feb 27, 2020 |
0.5.1 | Jan 24, 2020 |
0.1.0 | Jan 3, 2020 |
#16 in #sms
21KB
406 lines
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
Dependencies
~4–16MB
~218K SLoC