Project

chatspry

0.0
No commit activity in last 3 years
No release in over 3 years
API wrapper for chatspry in ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
~> 3.0.0

Runtime

~> 0.9
< 3.0, >= 2.0
 Project Readme

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