<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Curtis Summers &#187; activeyahoo</title>
	<atom:link href="http://csummers.com/tag/activeyahoo/feed/" rel="self" type="application/rss+xml" />
	<link>http://csummers.com</link>
	<description>%w{life code ruby}.map { &#124;i&#124; "#{i} is awesome" }</description>
	<lastBuildDate>Sat, 31 Mar 2012 19:54:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ActiveYahoo: A Ruby API for Yahoo! Web Services</title>
		<link>http://csummers.com/2007/11/04/activeyahoo-a-ruby-api-for-yahoo-web-services/</link>
		<comments>http://csummers.com/2007/11/04/activeyahoo-a-ruby-api-for-yahoo-web-services/#comments</comments>
		<pubDate>Mon, 05 Nov 2007 02:31:08 +0000</pubDate>
		<dc:creator>Curt</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[activeyahoo]]></category>

		<guid isPermaLink="false">http://csummers.com/?p=5</guid>
		<description><![CDATA[Do you Yahoo? I do, and was recently a little disappointed in the Ruby offerings for the Yahoo Web Services API. So, a little coding and we have ActiveYahoo: require 'active_yahoo' y = ActiveYahoo::WebSearch.new&#40;‘YOUR_APP_ID’, ‘ruby’, &#123; :results =&#62; 2 &#125;&#41; y.result.total_results_returned # =&#62; 2 y.result.records&#91;0&#93;.title # =&#62; &#34;Ruby-lang.org&#34; y.result.records.map &#123; &#124;r&#124; r.url &#125; # =&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Do you Yahoo?  I do, and was recently a little disappointed in the Ruby offerings for the Yahoo Web Services API.  So, a little coding and we have ActiveYahoo:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'active_yahoo'</span>
y = <span style="color:#6666ff; font-weight:bold;">ActiveYahoo::WebSearch</span>.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span>‘YOUR_APP_ID’, ‘ruby’, <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#ff3333; font-weight:bold;">:results</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006666;">2</span> <span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
y.<span style="color:#9900CC;">result</span>.<span style="color:#9900CC;">total_results_returned</span>  <span style="color:#008000; font-style:italic;"># =&gt; 2</span>
y.<span style="color:#9900CC;">result</span>.<span style="color:#9900CC;">records</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">0</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#9900CC;">title</span>  <span style="color:#008000; font-style:italic;"># =&gt; &quot;Ruby-lang.org&quot;</span>
y.<span style="color:#9900CC;">result</span>.<span style="color:#9900CC;">records</span>.<span style="color:#9900CC;">map</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>r<span style="color:#006600; font-weight:bold;">|</span> r.<span style="color:#9900CC;">url</span> <span style="color:#006600; font-weight:bold;">&#125;</span>
<span style="color:#008000; font-style:italic;">#  =&gt; [&quot;http://www.ruby-lang.org/en&quot;,</span>
<span style="color:#008000; font-style:italic;">#      &quot;http://en.wikipedia.org/wiki/Ruby_programming_language&quot;]</span></pre></div></div>

<p>A primary objective of ActiveYahoo is to encapsulate Yahoo‘s responses into their own objects. For example, an instance of the WebSearch class will return a WebSearchResult object. Special care is also given to convert response fields into appropriate Ruby data types.</p>
<p>So far, the following Search services have been implemented:  Web, News, Images, Audio, and Video.  More will follow soon. The essentials are on Rubyforge here:</p>
<p><a href="http://rubyforge.org/projects/activeyahoo/">View the ActiveYahoo project page</a><br />
<a href="http://activeyahoo.rubyforge.org/">View the documentation</a></p>
]]></content:encoded>
			<wfw:commentRss>http://csummers.com/2007/11/04/activeyahoo-a-ruby-api-for-yahoo-web-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

