Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/linyows/breacan
- Owner: linyows
- License: mit
- Created: 2015-03-02T09:15:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-04-17T13:22:22.000Z (7 months ago)
- Last Synced: 2024-05-02T05:35:25.672Z (6 months ago)
- Topics: api-client, ruby, slack
- Language: Ruby
- Homepage:
- Size: 53.7 KB
- Stars: 10
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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 RequestAuthors
-------- [linyows](https://github.com/linyows)