1{-# LANGUAGE OverloadedStrings #-}
6import Text.RawString.QQ
9import Network.API.Mandrill.Messages.Types
10import Network.API.Mandrill.Users.Types
11import qualified Data.ByteString.Char8 as C8
14import Network.API.Mandrill.Types
15import qualified Network.API.Mandrill.Messages as API
16import qualified Network.API.Mandrill.Users as API
21testOnlineUsersInfo :: MandrillKey -> Assertion
22testOnlineUsersInfo k = do
25 MandrillSuccess _ -> return ()
26 MandrillFailure e -> fail $ "users/info.json " ++ show e
28testOnlineUsersPing2 :: MandrillKey -> Assertion
29testOnlineUsersPing2 k = do
32 MandrillSuccess _ -> return ()
33 MandrillFailure e -> fail $ "users/ping2.json " ++ show e
35testOnlineUsersSenders :: MandrillKey -> Assertion
36testOnlineUsersSenders k = do
39 MandrillSuccess _ -> return ()
40 MandrillFailure e -> fail $ "users/senders.json " ++ show e
46testOnlineMessagesSend :: MandrillKey -> Assertion
47testOnlineMessagesSend k = do
48 msg <- generate arbitrary
49 res <- API.send k msg Nothing Nothing Nothing
51 MandrillSuccess _ -> return ()
52 MandrillFailure e -> fail $ "messages/send.json " ++ show e
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list