module Network.API.Mandrill.Users where
import Network.API.Mandrill.Settings
import Network.API.Mandrill.HTTP
import Network.API.Mandrill.Types
import Network.API.Mandrill.Users.Types
import Network.HTTP.Client
info :: MandrillKey -> Maybe Manager -> IO (MandrillResponse UsersInfoResponse)
info key = toMandrillResponse UsersInfo (UsersRq key)
ping :: MandrillKey -> Maybe Manager -> IO (MandrillResponse UsersPingResponse)
ping _ _ = fail "users/ping.json doesn't return valid JSON, thus is not implemented yet."
ping2 :: MandrillKey -> Maybe Manager -> IO (MandrillResponse UsersPing2Response)
ping2 key = toMandrillResponse UsersPing2 (UsersRq key)
senders :: MandrillKey -> Maybe Manager -> IO (MandrillResponse [UsersSendersResponse])
senders key = toMandrillResponse UsersSenders (UsersRq key)