-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Sengrid API
--
@package sendgrid-haskell
@version 1.0
module Network.Sendgrid.Api
-- | Auth
data Authentication
Authentication :: String -> String -> Authentication
user :: Authentication -> String
key :: Authentication -> String
-- | Messages
data EmailMessage
EmailMessage :: String -> String -> String -> String -> EmailMessage
to :: EmailMessage -> String
from :: EmailMessage -> String
subject :: EmailMessage -> String
text :: EmailMessage -> String
-- | HTTP request helpers
makeRequest :: (MonadIO m, MonadBaseControl IO m, MonadThrow m, Show a) => a -> String -> [(String, String)] -> m ByteString
getRequest :: (MonadThrow m, MonadIO m, MonadBaseControl IO m) => String -> [(String, String)] -> m ByteString
-- | Request helpers
postRequest :: (MonadThrow m, MonadIO m, MonadBaseControl IO m) => String -> [(String, String)] -> m ByteString
-- | Send an email message i.e sendEmail (Authentication FOO
-- BAR) (Message ...)
sendEmail :: (Tupled a1, Tupled a) => a -> a1 -> IO (Maybe MailSuccess)
instance Show Authentication
instance Eq EmailMessage
instance Show EmailMessage
instance Show Profile
instance Show MailSuccess
instance FromJSON MailSuccess
instance FromJSON Profile
instance Show Method
instance AsByteString Method
instance Tupled EmailMessage
instance Tupled Authentication