-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Library for postmarkapp.com HTTP Api -- -- postmark @package postmark @version 0.0.1 module Network.Api.Postmark.Data type BatchEmail = [Email] data Email Email :: Text -> [Text] -> [Text] -> [Text] -> Text -> Maybe Text -> Maybe Text -> Maybe Text -> Text -> Map Text Text -> [Attachment] -> Email emailFrom :: Email -> Text emailTo :: Email -> [Text] emailCc :: Email -> [Text] emailBcc :: Email -> [Text] emailSubject :: Email -> Text emailTag :: Email -> Maybe Text emailHtml :: Email -> Maybe Text emailText :: Email -> Maybe Text emailReplyTo :: Email -> Text emailHeaders :: Email -> Map Text Text emailAttachments :: Email -> [Attachment] data Attachment Attachment :: Text -> Text -> Text -> Attachment attachmentName :: Attachment -> Text attachmentContent :: Attachment -> Text attachmentContentType :: Attachment -> Text data PostmarkRequest a HttpPostmarkRequest :: Text -> a -> PostmarkRequest a HttpsPostmarkRequest :: Text -> a -> PostmarkRequest a data PostmarkResponseSuccessData PostmarkResponseSuccessData :: Text -> Text -> Text -> PostmarkResponseSuccessData data PostmarkResponseErrorData PostmarkResponseErrorData :: Int -> Text -> PostmarkResponseErrorData data PostmarkResponse PostmarkResponseSuccess :: Text -> Text -> Text -> PostmarkResponse postmarkMessageId :: PostmarkResponse -> Text postmarkSubmittedAt :: PostmarkResponse -> Text postmarkTo :: PostmarkResponse -> Text PostmarkResponseUnauthorized :: PostmarkResponse PostmarkResponseUnprocessible :: PostmarkError -> Text -> PostmarkResponse PostmarkResponseServerError :: Text -> PostmarkResponse PostmarkResponseInvalidResponseCode :: Int -> Text -> PostmarkResponse PostmarkResponseJsonSyntaxError :: Int -> Text -> Text -> PostmarkResponse PostmarkResponseJsonFormatError :: Int -> Text -> Text -> PostmarkResponse data PostmarkError PostmarkBadApiToken :: PostmarkError PostmarkInvalidEmail :: PostmarkError PostmarkSenderNotFound :: PostmarkError PostmarkSenderNotConfirmed :: PostmarkError PostmarkInvalidJson :: PostmarkError PostmarkIncompatibleJson :: PostmarkError PostmarkNotAllowed :: PostmarkError PostmarkInactive :: PostmarkError PostmarkBounceNotFound :: PostmarkError PostmarkBounceQueryException :: PostmarkError PostmarkJsonRequired :: PostmarkError PostmarkTooManyMessages :: PostmarkError PostmarkUnkownError :: Int -> PostmarkError toPostmarkError :: Int -> PostmarkError toBaseUrl :: PostmarkRequest a -> Text toUrl :: PostmarkRequest a -> Text -> Text postmarkToken :: PostmarkRequest a -> Text postmarkEmail :: PostmarkRequest a -> a successDataToResponse :: PostmarkResponseSuccessData -> PostmarkResponse errorDataToResponse :: PostmarkResponseErrorData -> PostmarkResponse syntaxErr :: Int -> ByteString -> Text -> PostmarkResponse decodeErr :: Int -> ByteString -> Text -> PostmarkResponse ojson :: ToJSON a => Text -> Maybe a -> Maybe (Text, Value) oljson :: ToJSON b => Text -> [a] -> ([a] -> b) -> Maybe (Text, Value) omjson :: ToJSON a => Text -> Map Text a -> Maybe (Text, Value) toText :: ByteString -> Text instance Eq PostmarkError instance Eq PostmarkResponse instance Show PostmarkResponse instance Show PostmarkError instance FromJSON PostmarkResponseErrorData instance FromJSON PostmarkResponseSuccessData instance ToJSON Attachment instance ToJSON Email module Network.Api.Postmark.Defaults testKey :: Text defaultEmail :: Email module Network.Api.Postmark.Core sendEmail :: PostmarkRequest Email -> IO PostmarkResponse -- | Library for postmarkapp.com HTTP Api module Network.Api.Postmark