Skip to content
A gem that interfaces with the live search api
Ruby
Find file
Failed to load latest commit information.
lib Added total method to request
spec Fixed query bugs
.gitignore First version of the gem
LICENSE First version of the gem
README Added total method to request
Rakefile First version of the gem

README

# LiveAPI.application_id = "YOU_APPLICATION_ID"
# search = LiveAPI::Search.web("seo")
# results = search.results #=> 50 happy results :)
# 
# results.each do |result|
# 	puts result.title
# 	puts result.description
# 	puts result.url
# 	puts result.display_url
# end
# 
# search.total #=> Total number of results returned

You can also provide options in the second parameter. Example:

# LiveAPI::Search.web("seo", :Count => 25, :Offset => 26) #=> Returns 25 results instead of our default 50 and starts on the 2nd page

See LiveAPI::Search::Request for query options.

For more information on the API, visit: http://dev.live.com/livesearch/

=== Contact

info@rubyskills.com if you're looking for some extra help
Something went wrong with that request. Please try again.