highlevel-api 0.1.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 std::sync::Arc;
use crate::{error::Result, http::HttpClient};
use super::types::*;

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

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

    pub async fn list(&self, params: &GetCoursesParams) -> Result<GetCoursesResponse> {
        self.http.get_with_query("/courses", params).await
    }
}