API wrapper for Chatspry to be used from any ruby 1.9, 2.0 or 2.1 application. Dependent on the following libraries:
Add this line to your project Gemfile:
gem "chatspry", "~> 0.0.1.pre3"
Then execute this in a command line from your project directory:
$ bundle
Or install it on it's own with RubyGems:
$ gem install chatspry
require "chatspry"
client = Chatspry::Client.new
client.access_token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
user = client.get("/v1/user")
# => { "user" => { "id"=>"...", "handle"=>"zeeraw", "name"=>"Philip Vieira", "updated_at"=>1403036249, "created_at"=>1403036249 } }
user.handle
# => "zeeraw"
1. Fork it at https://github.com/chatspry/chatspry.rb/fork
$ git checkout -b feature/my-important-change
$ git commit -am 'The gem now behaves this way, because reasons'
$ git push origin feature/my-important-change