Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

rubyoverflow is a library for querying the Stack Exchange API

branch: master
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.