highlevel-api 0.2.0

Unofficial Rust SDK for the GoHighLevel (HighLevel) API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::types::*;
use crate::{error::Result, http::HttpClient};
use std::sync::Arc;

pub struct CompaniesApi {
    http: Arc<HttpClient>,
}

impl CompaniesApi {
    pub fn new(http: Arc<HttpClient>) -> Self {
        Self { http }
    }

    pub async fn get(&self, company_id: &str) -> Result<GetCompanyResponse> {
        self.http.get(&format!("/companies/{company_id}")).await
    }
}