Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Web.Slack.Reactions
Description
API methods relating to reactions:
- https://api.slack.com/methods/reactions.add
- https://api.slack.com/methods/reactions.get
- https://api.slack.com/methods/reactions.list
- https://api.slack.com/methods/reactions.remove
Since: 2.1.0.0
Synopsis
- data AddReq = AddReq {}
- data AddResp = AddResp
- type Api = "reactions.add" :> (AuthProtect "token" :> (ReqBody '[FormUrlEncoded] AddReq :> Post '[JSON] (ResponseJSON AddResp)))
- reactionsAdd :: SlackConfig -> AddReq -> IO (Response AddResp)
- reactionsAdd_ :: AuthenticatedRequest (AuthProtect "token") -> AddReq -> ClientM (ResponseJSON AddResp)
Documentation
Constructors
AddReq | |
Response to reactions.add
. Slack doesn't send us anything here.
Since: 2.1.0.0
Constructors
AddResp |
type Api = "reactions.add" :> (AuthProtect "token" :> (ReqBody '[FormUrlEncoded] AddReq :> Post '[JSON] (ResponseJSON AddResp))) Source #
reactionsAdd :: SlackConfig -> AddReq -> IO (Response AddResp) Source #
reactionsAdd_ :: AuthenticatedRequest (AuthProtect "token") -> AddReq -> ClientM (ResponseJSON AddResp) Source #