Slack Web and RTM API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.gitignore
LICENSE
README-slack-generic-client.md
README.md
Setup.hs
ci.sh
circle.yml
slack-hs.cabal
stack.yaml

README.md

SLACK

Haskell client for the Slack web api

CircleCI

Roadmap

  • Web API
  • Websocket API
  • Stackage Release
  • CI

API Use

All the web API methods are available but you may need to reference the slack docks for parameters.

For a full list of available methods and params visit https://api.slack.com/methods

Quick Start

import qualified Network.Slack.Api as Slack

token :: String
token = "XXX"

-- List channels
--
channels :: IO SlackResponse
channels = Slack.channelsList token []

-- Create a message in the random chat room
--
createMsgExample :: IO SlackResponse
createMsgExample = Slack.chatPostMessage token [("channel", "#random"), ("text", "Hi from Haskell")]

Get information about a request endpoint

λ> info "channels.list"
"Lists all channels in a Slack team"