Module

Mailgun.Complaints

Package
purescript-mailgun
Repository
piq9117/purescript-mailgun

This API allows you to programmatically download the list of users who have complained, add a complaint, or delete a complaint.

#Complaints Source

data Complaints :: Type

Complaints represents the complaints api.

#ComplaintsAttr Source

type ComplaintsAttr = { address :: String, created_at :: Effect Date }

#complaints Source

complaints :: Mailgun -> Maybe String -> Complaints

complaints api.

#list Source

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

Fetches the list of complaints.

#create Source

create :: forall a. Complaints -> ComplaintsAttr -> Callback a -> Effect Unit

Add an address to the complaints table.

#info Source

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

Fetches a single spam complaint by a given email address.

#delete Source

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

Removes a given spam complaint.