@@ -5,28 +5,28 @@ import Network.API.Mandrill.Settings
5import Network.API.Mandrill.HTTP
5import Network.API.Mandrill.HTTP
6import Network.API.Mandrill.Types
6import Network.API.Mandrill.Types
7import Network.API.Mandrill.Users.Types
7import Network.API.Mandrill.Users.Types
8−import Data.Aeson
8+import Network.HTTP.Client
11--------------------------------------------------------------------------------
11--------------------------------------------------------------------------------
12-- | Return the information about the API-connected user
12-- | Return the information about the API-connected user
13−info :: MandrillKey -> IO (MandrillResponse UsersInfoResponse)
13+info :: MandrillKey -> Maybe Manager -> IO (MandrillResponse UsersInfoResponse)
14info key = toMandrillResponse UsersInfo (UsersRq key)
14info key = toMandrillResponse UsersInfo (UsersRq key)
17--------------------------------------------------------------------------------
17--------------------------------------------------------------------------------
18-- | Validate an API key and respond to a ping
18-- | Validate an API key and respond to a ping
19−ping :: MandrillKey -> IO (MandrillResponse UsersPingResponse)
19+ping :: MandrillKey -> Maybe Manager -> IO (MandrillResponse UsersPingResponse)
20−ping _ = fail "users/ping.json doesn't return valid JSON, thus is not implemented yet."
20+ping _ _ = fail "users/ping.json doesn't return valid JSON, thus is not implemented yet."
23--------------------------------------------------------------------------------
23--------------------------------------------------------------------------------
24-- | Validate an API key and respond to a ping (anal JSON parser version)
24-- | Validate an API key and respond to a ping (anal JSON parser version)
25−ping2 :: MandrillKey -> IO (MandrillResponse UsersPing2Response)
25+ping2 :: MandrillKey -> Maybe Manager -> IO (MandrillResponse UsersPing2Response)
26ping2 key = toMandrillResponse UsersPing2 (UsersRq key)
26ping2 key = toMandrillResponse UsersPing2 (UsersRq key)
29--------------------------------------------------------------------------------
29--------------------------------------------------------------------------------
30-- | Return the senders that have tried to use this account, both verified and unverified
30-- | Return the senders that have tried to use this account, both verified and unverified
31−senders :: MandrillKey -> IO (MandrillResponse [UsersSendersResponse])
31+senders :: MandrillKey -> Maybe Manager -> IO (MandrillResponse [UsersSendersResponse])
32senders key = toMandrillResponse UsersSenders (UsersRq key)
32senders key = toMandrillResponse UsersSenders (UsersRq key)