Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jclem/slack_ex


https://github.com/jclem/slack_ex

Last synced: about 1 month ago
JSON representation

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
```