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.9"}]
        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)
  • [x] [`Slack.IM`](Slack.IM.html)
  • [x] [`Slack.MPIM`](Slack.MPIM.html)
  • [x] [`Slack.OAuth`](Slack.OAuth.html)
  • [x] [`Slack.Pin`](Slack.Pin.html)
  • [x] [`Slack.Reaction`](Slack.Reaction.html)
  • [x] [`Slack.Reminder`](Slack.Reminder.html)
  • [x] [`Slack.RTM`](Slack.RTM.html)
  • [x] [`Slack.Search`](Slack.Search.html)
  • [x] [`Slack.Star`](Slack.Star.html)
  • [x] [`Slack.Team`](Slack.Team.html)
  • [x] [`Slack.Team.Profile`](Slack.Team.Profile.html)
  • [x] [`Slack.UserGroup`](Slack.UserGroup.html)
  • [x] [`Slack.UserGroup.User`](Slack.UserGroup.User.html)
  • [x] [`Slack.User`](Slack.User.html)
  • [x] [`Slack.User.Profile`](Slack.User.Profile.html)