LoopsEx.MailingLists (LoopsEx v0.1.0)

View Source

View mailing lists in your account.

Summary

Types

Response type returned by Loops API calls

Functions

Retrieve all mailing lists in your account.

Types

response()

@type response() :: LoopsEx.Client.response()

Response type returned by Loops API calls

Functions

list()

@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}]}