All Projects → owainlewis → slack

owainlewis / slack

Licence: MIT license
Slack Web and RTM API

Programming Languages

haskell
3896 projects
shell
77523 projects

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"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].