Sha256: 7d920286a0c720105d81d143b5dd0e5cedf9641c254fee133dec25c4dd4fead7
Contents?: true
Size: 1.76 KB
Versions: 1
Compression:
Stored size: 1.76 KB
Contents
[](https://travis-ci.org/abrom/rocketchat-ruby) [](https://codeclimate.com/github/abrom/rocketchat-ruby) [](#) # Rocket.Chat REST API for Ruby This is a gem wrapping the v1 REST API for [Rocket.Chat](https://rocket.chat/). The gem is based on a fork of http://github.com/int2xx9/ruby-rocketchat however that gem implemented v0.1 of the Rocket.Chat API and it was not forward compatible. Thanks to [@int2xx9](http://github.com/int2xx9) for the framework on which this gem was based ## Installation Add this line to your application's Gemfile: ```ruby gem 'rocketchat' ``` And then execute: $ bundle ## Supported API calls This gem supports the following Rocket.Chat APIs (Tested against Rocket.Chat v0.5.4) #### Miscellaneous information * /api/v1/info #### Authentication * /api/v1/login * /api/v1/logout * /api/v1/me ### Users * /api/v1/users.create ## Usage To get Rocket.Chat version ```ruby require 'rocketchat' rocket_server = RocketChat::Server.new('http://your.server.address/') info = rocket_server.info puts "Rocket.Chat version: #{info.version}" ``` To logout from a server: ```ruby require 'rocketchat' rocket_server = RocketChat::Server.new('http://your.server.address/') session = rocket_server.login('username', 'password') # ... use the API ... session.logout ``` ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/abrom/rocketchat-ruby. ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rocketchat-0.0.3 | README.md |