sms-plivo 0.3.0

Plivo backend for smskit.
Documentation

Plivo SMS Provider

Plivo backend for the smskit multi-provider SMS abstraction.

Sending messages

use sms_core::{SendRequest, SmsClient};
use sms_plivo::PlivoClient;

let client = PlivoClient::new("YOUR_AUTH_ID", "YOUR_AUTH_TOKEN");
let response = client.send(SendRequest {
    to: "+14155551234",
    from: "+10005551234",
    text: "Hello from Plivo!",
}).await?;
println!("Message ID: {}", response.id);

Creating from environment variables

let client = PlivoClient::from_env()?;

Reads PLIVO_AUTH_ID and PLIVO_AUTH_TOKEN from the environment.