Module

Mailgun.Unsubscribes

Package
purescript-mailgun
Repository
piq9117/purescript-mailgun

This API allows you to programmatically download the list of recipeints who have unsubscribed from your emails. You can also programmatically "clear" the unsubscribe event.

#Unsubscribes Source

#UnsubscribesAttr Source

type UnsubscribesAttr = { address :: String, tag :: Maybe String, created_at :: Effect Date }

#unsubscribes Source

unsubscribes :: Mailgun -> Maybe String -> Unsubscribes

unsubscribes api

#list Source

list :: forall a. Unsubscribes -> Callback a -> Effect Unit

Fetches the list of unsubscribes.

#info Source

info :: forall a. Unsubscribes -> Callback a -> Effect Unit

Retrieve a single unsubscribe record.

#delete Source

delete :: forall a. Unsubscribes -> Callback a -> Effect Unit

Removes an addresss from the unsubscribes table.

#create Source

create :: forall a. Unsubscribes -> UnsubscribesAttr -> Callback a -> Effect Unit

Adds address to unsubscribed table.