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
45
46
47
48
//! # SMSGate
//!
//! A Rust client library for the [SMSGate](https://sms-gate.app) API.
//!
//! ## Quick Start
//!
//! ```no_run
//! use android_sms_gateway::{Client, ClientConfig, types::Message};
//!
//! # async fn example() -> Result<(), android_sms_gateway::Error> {
//! let config = ClientConfig::new()
//! .with_token("your-jwt-token");
//!
//! let client = Client::new(config)?;
//!
//! let health = client.check_health().await?;
//! println!("Status: {:?}", health.status);
//! # Ok(())
//! # }
//! ```
//!
//! ## Feature Flags
//!
//! | Feature | Description |
//! |---------|-------------|
//! | `rustls-tls` | Use `rustls` for TLS (default) |
//! | `native-tls` | Use platform-native TLS |
//! | `encryption` | Enable AES-256-CBC message encryption/decryption |
pub
pub use Client;
pub use ClientConfig;
pub use Error;
/// Current version of the crate.
pub const VERSION: &str = env!;
/// Default base URL for the Android SMS Gateway API.
pub const BASE_URL: &str = "https://api.sms-gate.app/3rdparty/v1";