View Source Glific.Providers.Gupshup.Template (Glific v5.1.6)
Module for handling template operations specific to Gupshup
Link to this section Summary
Functions
Bulk apply templates from CSV when BSP is Gupshup
Delete template from the gupshup
Import pre approved templates when BSP is Gupshup
Submitting HSM template for approval
Updating HSM templates for an organization
Link to this section Functions
@spec bulk_apply_templates(non_neg_integer(), String.t()) :: {:ok, any()}
Bulk apply templates from CSV when BSP is Gupshup
@spec delete(non_neg_integer(), map()) :: {:ok, any()} | {:error, any()}
Delete template from the gupshup
@spec import_templates(non_neg_integer(), String.t()) :: {:ok, any()}
Import pre approved templates when BSP is Gupshup
@spec submit_for_approval(map()) :: {:ok, Glific.Templates.SessionTemplate.t()} | {:error, String.t()}
Submitting HSM template for approval
@spec update_hsm_templates(non_neg_integer()) :: :ok | {:error, String.t()}
Updating HSM templates for an organization