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
//! Unofficial Rust SDK for the GoHighLevel (HighLevel) API.
//!
//! # Quick start
//!
//! ```no_run
//! use highlevel_api::{HighLevel, HighLevelConfig};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let client = HighLevel::new(
//! HighLevelConfig::new("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET")
//! .with_redirect_uri("https://your-app.example.com/oauth/callback"),
//! );
//!
//! client.set_access_token("YOUR_ACCESS_TOKEN").await;
//!
//! let contacts = client.contacts().search(
//! &highlevel_api::apis::contacts::SearchContactsParams {
//! location_id: "YOUR_LOCATION_ID".into(),
//! query: Some("john".into()),
//! limit: Some(10),
//! ..Default::default()
//! },
//! ).await?;
//!
//! println!("Found {} contacts", contacts.contacts.len());
//! Ok(())
//! }
//! ```
pub use HighLevel;
pub use HighLevelConfig;
pub use ;