Client for Yahoo! Search webservices in RubyOnRails

Posted by anup.narkhede on May 27, 2007

Here is a client for Yahoo search api using the simplest web service architecture REST (Representational State Transfer).
Working demo: http://demo.anup.info/search

The client application works as:

  • Connects to the webservice with POST request
  • Gets the result as a REXML document
  • Parse and display the results
  • To begin with, get an application ID from http://developer.yahoo.com.

    Controller: search_controller.rb

    View: index.rhtml

    Partial view: _results.rhtml

    Partial View: _error.rhtml