LoopsEx.MailingLists (LoopsEx v0.1.0)
View SourceView mailing lists in your account.
Summary
Types
Response type returned by Loops API calls
Types
@type response() :: LoopsEx.Client.response()
Response type returned by Loops API calls
Functions
@spec list() :: response()
Retrieve all mailing lists in your account.
Returns
{:ok, [map()]}where each map includes:"id"(string)"name"(string)"description"(string)"isPublic"(boolean)
{:error, {status_code, response_body}}on failure.
Example
iex> LoopsEx.MailingLists.list()
{:ok, [%{"id" => "list_123", "name" => "Main", "description" => "Desc", "isPublic" => true}]}