pub struct EmailsService { /* private fields */ }Available on crate feature
emails only.Expand description
Typed access to the emails API v2 surface (5 operations). Obtained via
Ghl::emails.
Implementations§
Source§impl EmailsService
impl EmailsService
Sourcepub async fn fetch_email_templates(
&self,
params: &FetchEmailTemplatesParams,
) -> Result<FetchBuilderSuccesfulResponseDto>
pub async fn fetch_email_templates( &self, params: &FetchEmailTemplatesParams, ) -> Result<FetchBuilderSuccesfulResponseDto>
Fetch email templates
Fetch email templates by location id
GET /emails/builder
Requires scope: emails/builder.readonly.
Sourcepub async fn create_a_new_template(
&self,
body: &CreateBuilderDto,
) -> Result<CreateBuilderSuccesfulResponseDto>
pub async fn create_a_new_template( &self, body: &CreateBuilderDto, ) -> Result<CreateBuilderSuccesfulResponseDto>
Create a new template
POST /emails/builder
Requires scope: emails/builder.write.
Sourcepub async fn update_a_template(
&self,
body: &SaveBuilderDataDto,
) -> Result<BuilderUpdateSuccessfulDTO>
pub async fn update_a_template( &self, body: &SaveBuilderDataDto, ) -> Result<BuilderUpdateSuccessfulDTO>
Update a template
POST /emails/builder/data
Requires scope: emails/builder.write.
Sourcepub async fn delete_a_template(
&self,
location_id: &str,
template_id: &str,
) -> Result<DeleteBuilderSuccesfulResponseDto>
pub async fn delete_a_template( &self, location_id: &str, template_id: &str, ) -> Result<DeleteBuilderSuccesfulResponseDto>
Delete a template
DELETE /emails/builder/{locationId}/{templateId}
Sourcepub async fn get_campaigns(
&self,
params: &GetCampaignsParams,
) -> Result<ScheduleFetchSuccessfulDTO>
pub async fn get_campaigns( &self, params: &GetCampaignsParams, ) -> Result<ScheduleFetchSuccessfulDTO>
Get Campaigns
GET /emails/schedule
Requires scope: emails/schedule.readonly.
Trait Implementations§
Source§impl Clone for EmailsService
impl Clone for EmailsService
Source§fn clone(&self) -> EmailsService
fn clone(&self) -> EmailsService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for EmailsService
impl !UnwindSafe for EmailsService
impl Freeze for EmailsService
impl Send for EmailsService
impl Sync for EmailsService
impl Unpin for EmailsService
impl UnsafeUnpin for EmailsService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more