1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Unofficial SignalWire SDK for Rust.
//!
//! Async by default. Enable the `blocking` feature for a sync client.
//!
//! # Quick start
//!
//! ```no_run
//! use signalwire::{SignalWireClient, SmsMessage};
//!
//! # async fn run() -> Result<(), signalwire::SignalWireError> {
//! 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());
//! # Ok(()) }
//! ```
//!
//! # Modules
//!
//! - [`client`] — async [`SignalWireClient`].
//! - [`blocking`] (feature `blocking`) — sync [`BlockingClient`].
//! - [`errors`] — [`SignalWireError`].
//! - [`types`] — request/response types and query-param builders.
pub use SignalWireClient;
pub use SignalWireError;
pub use *;
pub use BlockingClient;