Slack

A client for the Slack API.

Usage

Most of the API methods work by first creating a Slack client (Slack.client(token)) and then passing it in to an API call. Note that a Slack.Client is only a convenience wrapper for a map with a :token key.

token
|> Slack.client
|> Slack.Channel.create(name: "mynewchannel")

Installation

If available in Hex, the package can be installed as:

  1. Add slack to your list of dependencies in mix.exs:

        def deps do
          [{:slack, "~> 0.0.7"}]
        end
        ```
    

Todo

  • [x] [`Slack.API`](Slack.API.html)
  • [x] [`Slack.Auth`](Slack.Auth.html)
  • [x] [`Slack.Bot`](Slack.Bot.html)
  • [x] [`Slack.Channel`](Slack.Channel.html)
  • [x] [`Slack.Chat`](Slack.Chat.html)
  • [x] [`Slack.DND`](Slack.DND.html)
  • [x] [`Slack.Emoji`](Slack.Emoji.html)
  • [x] [`Slack.File.Comment`](Slack.File.Comment.html)
  • [x] [`Slack.File`](Slack.File.html)
  • [x] [`Slack.Group`](Slack.Group.html)
  • [ ] Slack.IM
  • [ ] Slack.MPIM
  • [x] [`Slack.OAuth`](Slack.OAuth.html)
  • [ ] Slack.Pin
  • [ ] Slack.Reaction
  • [ ] Slack.Reminder
  • [ ] Slack.RTM
  • [ ] Slack.Search
  • [ ] Slack.Star
  • [ ] Slack.Team
  • [ ] Slack.Team.Profile
  • [ ] Slack.UserGroup