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:
Add
slackto your list of dependencies inmix.exs:def deps do [{:slack, "~> 0.0.1"}] end ```Ensure
slackis started before your application:def application do [applications: [:slack]] 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)
- [ ]
Slack.DND - [ ]
Slack.Emoji - [ ]
Slack.File.Comment - [ ]
Slack.File - [ ]
Slack.Group - [ ]
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