use std::error::Error; #[tokio::main] async fn main() -> Result<(), Box> { let session_key: String = std::env::var("ZIPWHIP_SESSION_KEY")?; let args = std::env::args().skip(1).take(2).collect::>(); let (to, body) = (&args[0], &args[1]); let zw_client = zipwhip_rs::Client::with_key(session_key); print!("Sending SMS... "); let id = zw_client.send_sms(to, body).await?; println!("{}", id); println!("Sent!"); Ok(()) }