Skip to main content

Crate android_sms_gateway

Crate android_sms_gateway 

Source
Expand description

§SMSGate

A Rust client library for the SMSGate API.

§Quick Start

use android_sms_gateway::{Client, ClientConfig, types::Message};

let config = ClientConfig::new()
    .with_token("your-jwt-token");

let client = Client::new(config)?;

let health = client.check_health().await?;
println!("Status: {:?}", health.status);

§Feature Flags

FeatureDescription
rustls-tlsUse rustls for TLS (default)
native-tlsUse platform-native TLS
encryptionEnable AES-256-CBC message encryption/decryption

Re-exports§

pub use client::Client;
pub use config::ClientConfig;
pub use error::Error;

Modules§

client
config
encryption
error
types
webhook

Constants§

BASE_URL
Default base URL for the Android SMS Gateway API.
VERSION
Current version of the crate.