| Crates.io | zipwhip-rs |
| lib.rs | zipwhip-rs |
| version | 0.6.0 |
| created_at | 2020-01-03 20:03:04.255903+00 |
| updated_at | 2021-02-19 12:09:08.721387+00 |
| description | A fast, asynchronous, and safe wrapper around the Zipwhip API |
| homepage | |
| repository | https://github.com/ajmwagar/zipwhip-rs |
| max_upload_size | |
| id | 194866 |
| size | 54,694 |
std::future::Future) (tokio is only used to run unit tests)#[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(())
}
ZIPWHIP_SESSION_KEY=<key> ZIPWHIP_TEST_NUMBER=<phone_number> cargo test