Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/linyows/breacan

💬 Simple Ruby wrapper for Slack API.
https://github.com/linyows/breacan

api-client ruby slack

Last synced: 21 days ago
JSON representation

💬 Simple Ruby wrapper for Slack API.

Awesome Lists containing this project

README

        



Breacan: Simple Ruby wrapper for Slack API.


Installation
------------

Add this line to your application's Gemfile:

```ruby
gem 'breacan'
```

And then execute:

$ bundle

Or install it yourself as:

$ gem install breacan

Usage
-----

example:

```ruby
require 'breacan'
Breacan.access_token = 'xoxp-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
Breacan.channels
=> [{:id=>"C03QXXXX",
:name=>"hello",
:is_channel=>true,
:created=>1424735886,
:creator=>"U03PXXXX",
:is_archived=>false,
:is_general=>false,
:is_member=>false,
:members=> ["U0NLXXXX",...
Breacan.channel_by_name('hello').id
=> "C03QXXXX"
```

Contributing
------------

1. Fork it ( https://github.com/linyows/breacan/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

Authors
-------

- [linyows](https://github.com/linyows)