View Source ExMarketo (ex marketo v0.1.4)

Public API of ExMarketo used by your application.

Link to this section Summary

Functions

Fetch user/lead from Marketo REST API. Returns fields id, email, unsubscribed, unsubscribedReason.

Subscribe existing user by email.

Unsubscribe existing user by email.

Link to this section Functions

Link to this function

get_subscription_status_by_email(email)

View Source

Fetch user/lead from Marketo REST API. Returns fields id, email, unsubscribed, unsubscribedReason.

example

Example

iex> get_subscription_status_by_email(email)
{:ok, %Tesla.Env{body: %{result: [%{}]}}}
Link to this function

subscribe_by_email(email)

View Source

Subscribe existing user by email.

example

Example

iex> subscribe_by_email("user@domain")
{:ok, %Tesla.Env{body: %{result: [%{}]}}}
Link to this function

unsubscribe_by_email(email)

View Source

Unsubscribe existing user by email.

example

Example

iex> unsubscribe_by_email("user@domain")
{:ok, %Tesla.Env{body: %{result: [%{}]}}}