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
//! # leash-sdk
//!
//! Rust SDK for the [Leash](https://leash.build) platform integrations API.
//!
//! The SDK communicates with the Leash platform proxy which handles OAuth tokens
//! and routes requests to Google Gmail, Calendar, and Drive APIs.
//!
//! ## Quick start
//!
//! ```no_run
//! use leash_sdk::LeashIntegrations;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), leash_sdk::LeashError> {
//! let client = LeashIntegrations::new("your-jwt-token");
//!
//! // List Gmail messages
//! let messages = client.gmail().list_messages(None).await?;
//! println!("{messages}");
//!
//! // Check if Gmail is connected
//! let connected = client.is_connected("gmail").await;
//! println!("Gmail connected: {connected}");
//!
//! Ok(())
//! }
//! ```
// Re-exports for convenience.
pub use LeashIntegrations;
pub use ;