Skip to main content

HighLevel

Struct HighLevel 

Source
pub struct HighLevel { /* private fields */ }
Expand description

The main entry point for the HighLevel API SDK.

§Quick start

use highlevel_api::{HighLevel, HighLevelConfig};

#[tokio::main]
async fn main() {
    let client = HighLevel::new(HighLevelConfig::new("client_id", "client_secret"));
    client.set_access_token("your_access_token").await;
}

Implementations§

Source§

impl HighLevel

Source

pub fn new(config: HighLevelConfig) -> Self

Source

pub async fn set_access_token(&self, token: impl Into<String>)

Set the Bearer token used for all API calls.

Source

pub async fn access_token(&self) -> Option<String>

Returns the current access token, if one has been set.

Source

pub fn oauth(&self) -> OAuthClient

Source

pub fn associations(&self) -> AssociationsApi

Source

pub fn blogs(&self) -> BlogsApi

Source

pub fn businesses(&self) -> BusinessesApi

Source

pub fn calendars(&self) -> CalendarsApi

Source

pub fn campaigns(&self) -> CampaignsApi

Source

pub fn companies(&self) -> CompaniesApi

Source

pub fn contacts(&self) -> ContactsApi

Source

pub fn conversations(&self) -> ConversationsApi

Source

pub fn courses(&self) -> CoursesApi

Source

pub fn custom_fields(&self) -> CustomFieldsApi

Source

pub fn custom_menus(&self) -> CustomMenusApi

Source

pub fn forms(&self) -> FormsApi

Source

pub fn funnels(&self) -> FunnelsApi

Source

pub fn invoices(&self) -> InvoicesApi

Source

pub fn locations(&self) -> LocationsApi

Source

pub fn medias(&self) -> MediasApi

Source

pub fn objects(&self) -> ObjectsApi

Source

pub fn opportunities(&self) -> OpportunitiesApi

Source

pub fn payments(&self) -> PaymentsApi

Source

pub fn pipelines(&self) -> PipelinesApi

Source

pub fn products(&self) -> ProductsApi

Source

pub fn snapshots(&self) -> SnapshotsApi

Source

pub fn social_planner(&self) -> SocialPlannerApi

Source

pub fn surveys(&self) -> SurveysApi

Source

pub fn tags(&self) -> TagsApi

Source

pub fn users(&self) -> UsersApi

Source

pub fn webhooks(&self) -> WebhooksApi

Source

pub fn workflows(&self) -> WorkflowsApi

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more