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
52
53
54
55
56
57
58
59
60
61
//! # TencentCloud SMS SDK for Rust
//!
//! This crate provides a Rust implementation of the TencentCloud SMS SDK,
//! allowing you to send SMS messages through TencentCloud's SMS service.
//!
//! ## Features
//!
//! - Send SMS messages (verification codes, notifications, marketing)
//! - Support for both domestic and international SMS
//! - Async/await support with tokio
//! - TC3-HMAC-SHA256 signature algorithm
//! - Comprehensive error handling
//!
//! ## Basic Usage
//!
//! ```rust,no_run
//! use tencentcloud_sms_sdk::{Client, Credential, SendSmsRequest};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Create credentials
//! let credential = Credential::new("your_secret_id", "your_secret_key", None);
//!
//! // Create client
//! let client = Client::new(credential, "ap-guangzhou");
//!
//! // Create request
//! let request = SendSmsRequest::new(
//! vec!["+8613800000000".to_string()],
//! "1400000000",
//! "123456",
//! "YourSignature",
//! vec!["123456".to_string()],
//! );
//!
//! // Send SMS
//! let response = client.send_sms(request).await?;
//! println!("SMS sent successfully: {:?}", response);
//!
//! Ok(())
//! }
//! ```
// Re-export main types for convenient usage
pub use crate;
pub use crate;
pub use crate;
/// Initialize the SDK (placeholder for future initialization needs)
/// Shutdown the SDK (placeholder for future cleanup needs)