mailgun-0.2: API binding for Mailgun

Safe HaskellNone
LanguageHaskell2010

Network.Mail.Mailgun.API

Documentation

data MGRequest Source #

Constructors

MGGet 

Fields

MGDelete 

Fields

Postable b => MGPost 

Fields

yesNo :: Text -> Bool -> Part Source #

call :: forall c m r. (HasMailgunConfig c, MonadIO m, MonadThrow m, MonadReader c m) => MGRequest -> (Value -> Maybe r) -> m r Source #

getStream Source #

Arguments

:: (HasMailgunConfig c, MonadIO m, MonadThrow m, MonadReader c m) 
=> s

The initial start parameter (like begin)

-> (s -> (t, MGRequest)) 
-> (t -> Value -> Maybe (Maybe s, [r])) 
-> SourceT m r 

paginatedStream :: forall c m r. (HasMailgunConfig c, MonadIO m, MonadThrow m, MonadReader c m) => MGRequest -> (Value -> Maybe [r]) -> SourceT m r Source #