Expand description
Unofficial Rust SDK for the GoHighLevel (HighLevel) API.
§Quick start
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(())
}Re-exports§
pub use client::HighLevel;pub use config::HighLevelConfig;pub use error::Error;pub use error::Result;