Infusionsoft v0.3.0 Infusionsoft.Endpoints.XML.Email View Source

Provides the raw endpoints to Infusionsoft’s XML API for Email actions.

Link to this section Summary

Functions

https://developer.infusionsoft.com/docs/xml-rpc/#email-opt-in-an-email-address

https://developer.infusionsoft.com/docs/xml-rpc/#email-retrieve-an-email-s-opt-in-status

https://developer.infusionsoft.com/docs/xml-rpc/#email-opt-out-an-email-address

https://developer.infusionsoft.com/docs/xml-rpc/#email-retrieve-an-email-template

https://developer.infusionsoft.com/docs/xml-rpc/#email-send-an-email-from-a-template

Link to this section Functions

Link to this function create_template(name, category, from, to, cc, bcc, subject, text_body, html_body, content_type, merge_context, token, app \\ nil) View Source
create_template(
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  nil | String.t()
) :: {:ok, integer()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#email-create-an-email-template

Link to this function opt_in(email, reason, token, app \\ nil) View Source
opt_in(String.t(), String.t(), String.t(), nil | String.t()) ::
  {:ok, boolean()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#email-opt-in-an-email-address

Link to this function opt_in_status(email, token, app \\ nil) View Source
opt_in_status(String.t(), String.t(), nil | String.t()) ::
  {:ok, integer()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#email-retrieve-an-email-s-opt-in-status

Returns an integer value of 0 for opt out / non-marketable / soft bounce / hard bounce, 1 for single opt-in, or 2 for double opt-in.

Link to this function opt_out(email, reason, token, app \\ nil) View Source
opt_out(String.t(), String.t(), String.t(), nil | String.t()) ::
  {:ok, boolean()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#email-opt-out-an-email-address

Link to this function retrieve_template(id, token, app \\ nil) View Source
retrieve_template(integer(), String.t(), nil | String.t()) ::
  {:ok, map()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#email-retrieve-an-email-template

Link to this function send_email(contact_id_list, from, to, cc, bcc, content_type, subject, html_body, text_body, token, app \\ nil) View Source
send_email(
  [integer()],
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  nil | String.t()
) :: {:ok, boolean()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#email-send-an-email

Link to this function send_from_template(contact_id_list, template_id, token, app \\ nil) View Source
send_from_template([integer()], integer(), String.t(), nil | String.t()) ::
  {:ok, boolean()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#email-send-an-email-from-a-template

Link to this function update_template(id, name, category, from, to, cc, bcc, subject, text_body, html_body, content_type, merge_context, token, app \\ nil) View Source
update_template(
  integer(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  nil | String.t()
) :: {:ok, integer()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#email-update-an-email-template