Skip to main content

highlevel_api/apis/courses/
client.rs

1use super::types::*;
2use crate::{error::Result, http::HttpClient};
3use std::sync::Arc;
4
5pub struct CoursesApi {
6    http: Arc<HttpClient>,
7}
8
9impl CoursesApi {
10    pub fn new(http: Arc<HttpClient>) -> Self {
11        Self { http }
12    }
13
14    pub async fn list(&self, params: &GetCoursesParams) -> Result<GetCoursesResponse> {
15        self.http.get_with_query("/courses", params).await
16    }
17}