Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jclem/slack_ex
https://github.com/jclem/slack_ex
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jclem/slack_ex
- Owner: jclem
- License: mit
- Created: 2016-06-27T12:46:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-12-09T20:06:59.000Z (almost 5 years ago)
- Last Synced: 2024-09-16T17:49:57.721Z (about 2 months ago)
- Language: Elixir
- Homepage: https://hexdocs.pm/slack_ex/
- Size: 41 KB
- Stars: 19
- Watchers: 2
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# SlackEx
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.```elixir
{:ok, %{"channel" => channel}} =
token
|> Slack.client
|> Slack.Channel.create(name: "mynewchannel")
```## Installation
1. Add `slack` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:slack_ex, "~> 0.0.14"}]
end
```