Skip to content

chatspry/chatspry.rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chatspry

API wrapper for Chatspry to be used from any ruby 1.9, 2.0 or 2.1 application. Dependent on the following libraries:

Installation

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

Usage

Basic usage

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"

Contributing

2. Create your feature branch nested under feature/

$ git checkout -b feature/my-important-change

3. Commit your changes

$ git commit -am 'The gem now behaves this way, because reasons'

4. Push to the branch

$ git push origin feature/my-important-change

5. Create a new Pull Request

About

API wrapper for chatspry in ruby

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages