Module

Mailgun.Routes

Package
purescript-mailgun
Repository
piq9117/purescript-mailgun

Mailgun Routes are powerful way to handle the incoming traffic. This API allows you to work with routes programmatically.

#Routes Source

data Routes :: Type

#RoutesAttr Source

type RoutesAttr = { priority :: Int, description :: String, expression :: ExpressionFilters, action :: ActionTypes }

#ActionTypes Source

#ExpressionFilters Source

#routes Source

routes :: Mailgun -> Maybe String -> Routes

routes api

#list Source

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

Fetches the list of routes

#info Source

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

Returns a single route object based on its ID.

#create Source

create :: forall a. Routes -> RoutesAttr -> Callback a -> Effect Unit

Create a new route.

#update Source

update :: forall a. Routes -> RoutesAttr -> Callback a -> Effect Unit

Updates a given route by ID.

#delete Source

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

Deletes a route baed on the ID.