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
client— asyncSignalWireClient.- [
blocking] (featureblocking) — sync [BlockingClient]. errors—SignalWireError.types— request/response types and query-param builders.
Re-exports§
pub use client::SignalWireClient;pub use errors::SignalWireError;pub use types::*;
Modules§
- client
- Async
SignalWireClient— built onreqwest+rustls-tls. - errors
- Error type for the SignalWire SDK.
- types
- Request and response types, plus typed query-param builders.