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
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: [%{}]}}}
Subscribe existing user by email.
example
Example
iex> subscribe_by_email("user@domain")
{:ok, %Tesla.Env{body: %{result: [%{}]}}}
Unsubscribe existing user by email.
example
Example
iex> unsubscribe_by_email("user@domain")
{:ok, %Tesla.Env{body: %{result: [%{}]}}}