Termii Rust
This is a Rust SDK for Termii's messaging api. The
- Send a message
- Send a one time token
- Verify a one time token
- Get your messaging history
- Verify a phone number
- Detects fake or ported numbers
- Request a sender ID and many more termii features
Example
Sending a quick message
This crate asynchronous client is the default client enabled by the default feature.
[]
= { = "0.1", = ["default"] }
use ;
let client = new;
let _message = new;
let message = client.switch.messaging.send.await;
println!;
The blocking client is also available, and can be enabled by the blocking
feature.
[]
= { = "0.1", = ["blocking"] }
use
let client = new;
let _message = new;
let message = client.switch.messaging.send.unwrap;
println!;