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 |
#1828 in Web programming
38 downloads per month
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
~3–19MB
~247K SLoC