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