smtpbz-1.0.1: Unofficial API client for smtp.bz
Safe HaskellSafe-Inferred
LanguageHaskell2010

Smtpbz.Internal.Api

Description

The response bodies are really un(der)specified, so this library doesn't try to do to much with them. You are on your own.

Functions' names map (trivially) to API routes. So, for some of them, it's not obvious what they do from their name. This is by design.

Synopsis

Documentation

user :: Has smtpbz => smtpbz -> IO (Response ByteString) Source #

User data.

userStats :: Has smtpbz => smtpbz -> IO (Response ByteString) Source #

User's mail distribution statistics.

userDomains :: Has smtpbz => smtpbz -> IO (Response ByteString) Source #

User's domains data.

userDomain :: Has smtpbz => smtpbz -> String -> IO (Response ByteString) Source #

User's specific domain data.

userIPs :: Has smtpbz => smtpbz -> IO (Response ByteString) Source #

User's IPs data.

userIP :: Has smtpbz => smtpbz -> String -> IO (Response ByteString) Source #

User's specific IP data.

data LogMessages Source #

Instances

Instances details
Show LogMessages Source # 
Instance details

Defined in Smtpbz.Internal.Api

Eq LogMessages Source # 
Instance details

Defined in Smtpbz.Internal.Api

logMessages :: Has smtpbz => smtpbz -> LogMessages -> IO (Response ByteString) Source #

Message log search.

logMessage :: Has smtpbz => smtpbz -> String -> IO (Response ByteString) Source #

Look up a specific message.

data Unsubscribe Source #

Instances

Instances details
Show Unsubscribe Source # 
Instance details

Defined in Smtpbz.Internal.Api

Eq Unsubscribe Source # 
Instance details

Defined in Smtpbz.Internal.Api

unsubscribe :: Has smtpbz => smtpbz -> Unsubscribe -> IO (Response ByteString) Source #

List of e-mail addresses mail is not delivired to.

unsubscribeAdd :: Has smtpbz => smtpbz -> ByteString -> IO (Response ByteString) Source #

Ignore an address.

unsubscribeRemove :: Has smtpbz => smtpbz -> ByteString -> IO (Response ByteString) Source #

Stop ignoring an address.

unsubscribeRemoveAll :: Has smtpbz => smtpbz -> IO (Response ByteString) Source #

Stop ignoring all previously ignored addresses.

data SmtpSend Source #

Instances

Instances details
Show SmtpSend Source # 
Instance details

Defined in Smtpbz.Internal.Api

Eq SmtpSend Source # 
Instance details

Defined in Smtpbz.Internal.Api

sendSmtp :: Has smtpbz => smtpbz -> SmtpSend -> IO (Response ByteString) Source #

checkEmail :: Has smtpbz => smtpbz -> String -> IO (Response ByteString) Source #

successfulCall :: Response ByteString -> Bool Source #

Check if response status code is in [200, 300).

debugPrintResponse :: Response ByteString -> IO () Source #

Print response body to stdout.