Skip to main content

Crate signalwire

Crate signalwire 

Source
Expand description

Unofficial SignalWire SDK for Rust.

Async by default. Enable the blocking feature for a sync client.

§Quick start

use signalwire::{SignalWireClient, SmsMessage};

let client = SignalWireClient::new("space", "project_id", "api_key")?;

let msg = SmsMessage {
    from: "+12065550100".into(),
    to:   "+12065550111".into(),
    body: "hello".into(),
};
let resp = client.send_sms(&msg).await?;
println!("sid={} status={}", resp.sid, resp.get_status());

§Modules

Re-exports§

pub use client::SignalWireClient;
pub use errors::SignalWireError;
pub use types::*;

Modules§

client
Async SignalWireClient — built on reqwest + rustls-tls.
errors
Error type for the SignalWire SDK.
types
Request and response types, plus typed query-param builders.