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
49
50
51
//! # Rust SDK for Vonage APIs
//!
//! The unified Rust SDK for Vonage APIs, providing a single interface
//! to access various Vonage services including SMS and more.
//!
//! ## Quick Start
//!
//! ### SMS API
//! ```rust
//! use vonage::{Vonage, BasicAuth, SignatureAuth};
//! use vonage::sms::SmsRequest;
//!
//! # async fn example() -> Result<(), Box<dyn std::error::Error>> {
//! // Create a client with your API credentials using Basic Auth
//! let vonage = Vonage::new(BasicAuth::new("api_key", "api_secret"))?;
//!
//! // Or create a client with Signature Auth (for SMS API)
//! let vonage_sig = Vonage::new(SignatureAuth::new("api_key", "signature_secret"))?;
//!
//! // Send an SMS message
//! let request = SmsRequest::text("Vonage", "15551234567", "Hello from Vonage!");
//! let response = vonage.sms().send(&request).await?;
//!
//! println!("Sent {} messages", response.message_count);
//! # Ok(())
//! # }
//! ```
//!
//! ## Features
//!
//! - **SMS**: Send and receive SMS messages
//! - **Authentication**: Support for API key/secret and signature authentication
//! - **Error Handling**: Comprehensive error types and handling
//! - **Async Support**: Built with async/await from the ground up
//! - **Regional Support**: Support for different API regions
// Re-export core types
pub use ;
// Re-export authentication
pub use ;
// Re-export SMS module
pub use vonage_sms as sms;
// Re-export main client
pub use Vonage;
pub use VonageBuilder;