Skip to main content

highlevel_api/
lib.rs

1//! Unofficial Rust SDK for the GoHighLevel (HighLevel) API.
2//!
3//! # Quick start
4//!
5//! ```no_run
6//! use highlevel_api::{HighLevel, HighLevelConfig};
7//!
8//! #[tokio::main]
9//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
10//!     let client = HighLevel::new(
11//!         HighLevelConfig::new("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET")
12//!             .with_redirect_uri("https://your-app.example.com/oauth/callback"),
13//!     );
14//!
15//!     client.set_access_token("YOUR_ACCESS_TOKEN").await;
16//!
17//!     let contacts = client.contacts().search(
18//!         &highlevel_api::apis::contacts::SearchContactsParams {
19//!             location_id: "YOUR_LOCATION_ID".into(),
20//!             query: Some("john".into()),
21//!             limit: Some(10),
22//!             ..Default::default()
23//!         },
24//!     ).await?;
25//!
26//!     println!("Found {} contacts", contacts.contacts.len());
27//!     Ok(())
28//! }
29//! ```
30
31pub mod apis;
32pub mod auth;
33pub mod client;
34pub mod config;
35pub mod error;
36pub mod http;
37pub mod storage;
38pub mod webhook;
39
40pub use client::HighLevel;
41pub use config::HighLevelConfig;
42pub use error::{Error, Result};