Skip to main content

beeper_desktop_api/
lib.rs

1//! Rust client library for Beeper Desktop API
2//!
3//! This library provides a simple and ergonomic interface to interact with the Beeper Desktop API.
4//! It handles authentication via bearer tokens and provides methods for managing accounts, chats,
5//! messages, and more.
6//!
7//! # Example
8//!
9//! ```no_run
10//! use beeper_desktop_api::BeeperClient;
11//!
12//! #[tokio::main]
13//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
14//!     let client = BeeperClient::new("your-token-here", "http://localhost:23373");
15//!     let accounts = client.get_accounts().await?;
16//!     println!("{:?}", accounts);
17//!     Ok(())
18//! }
19//! ```
20
21pub mod client;
22pub mod models;
23pub mod error;
24
25pub use client::BeeperClient;
26pub use error::{BeeperError, Result};
27pub use models::*;