twilio_rust
A rust-lang client library for Twilio based on hyper.rs. As such, network I/O is done asynchronously and all results are returned as futures.
Getting started
Let's start with an example of sending an SMS (You can run this example with cargo run --example send_message
).
You will need your Twilio credentials first:
// Create the tokio event loop
let mut core = new.unwrap;
// Create the twilio client
let client = new_from_env.unwrap;
let messages = new;
// Create the outbound SMS
let outbound_sms = new_sms.build;
let work = messages.send_message;
let sms = core.run.unwrap;
println!;