https://github.com/davidstump/slackex
Elixir Slack API Client
https://github.com/davidstump/slackex
api elixir slack wrapper
Last synced: 3 months ago
JSON representation
Elixir Slack API Client
- Host: GitHub
- URL: https://github.com/davidstump/slackex
- Owner: davidstump
- License: mit
- Created: 2016-01-12T04:50:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-28T05:04:35.000Z (about 8 years ago)
- Last Synced: 2025-02-27T03:47:54.763Z (3 months ago)
- Topics: api, elixir, slack, wrapper
- Language: Elixir
- Size: 99.6 KB
- Stars: 26
- Watchers: 3
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slackex
A Slack wrapper for Elixir
Requires an active account with Slack (http://slack.com).Provides a wrapper for every API endpoint listed in the [official slack developer documentation](https://api.slack.com/web)
## Installation
Slackex can be installed as:
1. Add slackex to your list of dependencies in `mix.exs`:
def deps do
[{:slackex, "~> 0.0.1"}]
end2. Ensure slackex is started before your application:
def application do
[applications: [:slackex]]
end3. Obtain a Slack token and set it as a System ENV as `SLACK_TOKEN`
## Examples
Just a few small examples to get you started. Details documentation is linked below.
To list all of your Slack channels:
```
channels = Slackex.Channels.list
```To create a new channel
```
new_channel = Slackex.Channels.create("My New Channel")
```## Documentation
For more detailed documentation visit:
* Slackex Documentation: [http://hexdocs.pm/slackex](http://hexdocs.pm/slackex)
* Slack API Methods: [https://api.slack.com/methods](https://api.slack.com/methods)