1 unstable release
0.1.1 | Oct 23, 2023 |
---|---|
0.1.0 |
|
16KB
163 lines
interact.rs
An unofficial Rust crate for the Webex Interact API
Example Usage
use interact_rs::sms;
fn main() {
let mut sms = sms::sms_api("zzz_XXXXXXXXXXXXXXXXXXXXXXXXXX".to_string());
match sms
.add_recipient("+447000000000".to_string()) // Add as many times as you need
.message("Testing using new Interact Rust class".to_string())
.set_originator("RustAPI".to_string())
.send_sms() {
Ok(response) => println!("Success! {},{}", response.status, response.response_body),
Err(e) => {
println!("Error! {}",e);
match e.get_data() {
Some(data) => {
println!("Additional information: {}",data);
},
None => {
println!("No additional data available");
}
}
}
}
}
Dependencies
~5–17MB
~234K SLoC