Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
rubyoverflow is a library for querying the Stack Exchange API
Ruby
Branch: master
Pull request Compare This branch is 159 commits ahead, 103 commits behind eadz:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.document
.gitignore
.rvmrc
.travis.yml
Gemfile
LICENSE
README.rdoc
RELEASENOTES
Rakefile
rubyoverflow.gemspec

README.rdoc

rubyoverflow

rubyoverflow is a library for querying the Stack Overflow API

Build Status

Dependency Status

Dependency
Status Gemnasium

Example

require 'rubyoverflow'

c = Rubyoverflow::Client.new
result = c.users.fetch(:id => 53587) # By default, this will query StackOverflow.com
me = result.users.first              # Get the first user out of the results
puts me.display_name                 # => "Dan Seaver"

c = Rubyoverflow::Client.new
c.users.each_fetch(:min => 100000) do | result_page |       # Query for all users with reputation higher than 1000
  result_page.users.each { |user| puts user.up_vote_count } # Print up votes count for these users
end

c = Rubyoverflow::Client.new :host => "http://api.serverfault.com" # Query ServerFault.com

Note on Patches/Pull Requests

  • Fork the project.

  • Make your feature addition or bug fix.

  • Add tests for it. This is important so I don't break it in a future version unintentionally.

  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)

  • Send me a pull request. Bonus points for topic branches.

Copyright

Copyright © 2011 Dan Seaver. See LICENSE for details.

Something went wrong with that request. Please try again.