Sha256: dde08b03f05120e400d2282b5fc01da24d2af09aefdd270fe29c0315a8390917

Contents?: true

Size: 631 Bytes

Versions: 1

Compression:

Stored size: 631 Bytes

Contents

slack-rtmapi
============

All you need to use the RTM api of Slack

Please note that this gem is GPLv3. You *CAN'T* use it for proprietary software.
If you need a licence, please contact me and I will respond within the 24 hours.

HOW TO USE
----------

```ruby
require 'slack-rtmapi'

url = SlackRTM.get_url token: 'xxx' # get one on https://api.slack.com/web#basics
client = SlackRTM::Client.new websocket_url: url

client.on :message {|data| p data}
client.send {type: 'hello'}

client.main_loop
assert false # never ending loop
```

For more informations about the Slack Real Time API, please check https://api.slack.com/rtm

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack-rtmapi-1.0.0.rc3 README.md