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
//! # ghl-sdk
//!
//! Unofficial async Rust SDK for the [GoHighLevel](https://www.gohighlevel.com)
//! (HighLevel) API 2.0.
//!
//! - **Auth**: Private Integration Tokens, raw OAuth access tokens, or full
//! OAuth 2.0 with automatic refresh ([`auth`]).
//! - **Resilience**: rate-limit-aware retries with exponential backoff and
//! `Retry-After` support; idempotent-only retry on 5xx/transport errors.
//! - **Pagination**: cursor handling exposed as [`futures_util::Stream`]s.
//! - **Config**: everything works via explicit builder parameters *or*
//! environment variables ([`Ghl::from_env`]).
//! - **Secret hygiene**: tokens live in [`secrecy`] types and are redacted
//! from all `Debug` output.
//!
//! ```no_run
//! use ghl_sdk::{Ghl, contacts::CreateContact};
//!
//! # async fn demo() -> Result<(), ghl_sdk::Error> {
//! let ghl = Ghl::from_env()?; // GHL_PIT_TOKEN or GHL_ACCESS_TOKEN
//! let contact = ghl.contacts().create(CreateContact {
//! location_id: "LOCATION_ID".into(),
//! email: Some("ada@example.com".into()),
//! ..Default::default()
//! }).await?;
//! println!("created {}", contact.id);
//! # Ok(()) }
//! ```
//!
//! *Not affiliated with HighLevel Inc.*
pub use ;
pub use ;
pub use ;