highlevel-api 0.2.1

Unofficial Rust SDK for the GoHighLevel (HighLevel) API
Documentation
use super::types::*;
use crate::{error::Result, http::HttpClient};
use std::sync::Arc;

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

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

    pub async fn list(&self, params: &GetFunnelsParams) -> Result<GetFunnelsResponse> {
        self.http
            .get_with_query("/funnels/funnel/list", params)
            .await
    }

    pub async fn get_pages(&self, params: &GetFunnelPagesParams) -> Result<GetFunnelPagesResponse> {
        self.http.get_with_query("/funnels/page", params).await
    }
}