sendgrid-haskell-1.0: Sengrid API

Safe HaskellNone
LanguageHaskell2010

Network.Sendgrid.Api

Synopsis

Documentation

data Authentication Source

Auth

Constructors

Authentication 

Fields

user :: String
 
key :: String
 

Instances

data EmailMessage Source

Messages

Constructors

EmailMessage 

Fields

to :: String
 
from :: String
 
subject :: String
 
text :: String
 

makeRequest :: (MonadIO m, MonadBaseControl IO m, MonadThrow m, Show a) => a -> String -> [(String, String)] -> m ByteString Source

HTTP request helpers

sendEmail :: (Tupled a1, Tupled a) => a -> a1 -> IO (Maybe MailSuccess) Source

Send an email message i.e sendEmail (Authentication FOO BAR) (Message ...)