<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Amazon Web Services on Rails</title>
	<atom:link href="http://www.roryhansen.ca/2005/07/18/amazon-web-services-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.roryhansen.ca/2005/07/18/amazon-web-services-on-rails/</link>
	<description>Affiliate marketing, Internet marketing, web development, and small business ideas.</description>
	<lastBuildDate>Fri, 28 May 2010 16:40:30 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: roupen nahabedian</title>
		<link>http://www.roryhansen.ca/2005/07/18/amazon-web-services-on-rails/comment-page-1/#comment-51084</link>
		<dc:creator>roupen nahabedian</dc:creator>
		<pubDate>Sat, 24 May 2008 19:29:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/?p=25#comment-51084</guid>
		<description>Thanks for the post ... i see that its been a while since the original . Did you figure out how the the midnight runs? You promised to post here ;-)</description>
		<content:encoded><![CDATA[<p>Thanks for the post &#8230; i see that its been a while since the original . Did you figure out how the the midnight runs? You promised to post here ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.roryhansen.ca/2005/07/18/amazon-web-services-on-rails/comment-page-1/#comment-29758</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Wed, 05 Dec 2007 00:29:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/?p=25#comment-29758</guid>
		<description>Any thoughts/tutorial on how to display the results in a Rails application?  I am new to both Ruby and Rails.  Also posted this question on http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/41c84b0616d161a1</description>
		<content:encoded><![CDATA[<p>Any thoughts/tutorial on how to display the results in a Rails application?  I am new to both Ruby and Rails.  Also posted this question on <a href="http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/41c84b0616d161a1" rel="nofollow">http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/41c84b0616d161a1</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabiano FranÃ§a &#187; Blog Archive &#187; links for 2007-06-22</title>
		<link>http://www.roryhansen.ca/2005/07/18/amazon-web-services-on-rails/comment-page-1/#comment-16228</link>
		<dc:creator>Fabiano FranÃ§a &#187; Blog Archive &#187; links for 2007-06-22</dc:creator>
		<pubDate>Fri, 22 Jun 2007 08:22:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/?p=25#comment-16228</guid>
		<description>[...] Rory Hansen Â» Amazon Web Services on Rails (tags: amazon howto rails rubyonrails webservice) [...]</description>
		<content:encoded><![CDATA[<p>[...] Rory Hansen Â» Amazon Web Services on Rails (tags: amazon howto rails rubyonrails webservice) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AS Workshop &#187; Amazon on Rails - search Amazon using Rails and Ruby/Amazon</title>
		<link>http://www.roryhansen.ca/2005/07/18/amazon-web-services-on-rails/comment-page-1/#comment-748</link>
		<dc:creator>AS Workshop &#187; Amazon on Rails - search Amazon using Rails and Ruby/Amazon</dc:creator>
		<pubDate>Thu, 31 Aug 2006 14:27:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/?p=25#comment-748</guid>
		<description>[...] First I needed a way to communicate with Amazon Web Service. After some searching I found that you could use ActionWebService to do that, but too many people said that this was way too complicated and suggested using Ruby/Amazon library instead. [...]</description>
		<content:encoded><![CDATA[<p>[...] First I needed a way to communicate with Amazon Web Service. After some searching I found that you could use ActionWebService to do that, but too many people said that this was way too complicated and suggested using Ruby/Amazon library instead. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Marshall</title>
		<link>http://www.roryhansen.ca/2005/07/18/amazon-web-services-on-rails/comment-page-1/#comment-526</link>
		<dc:creator>Kevin Marshall</dc:creator>
		<pubDate>Mon, 17 Jul 2006 20:47:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/?p=25#comment-526</guid>
		<description>One example that I had intially intended to get into the PDF I published through O&#039;Reilly (Web Services with Rails) was a client for the Alexa Page rank service...it didn&#039;t really fit into any of the specific areas I ended up covering, so I&#039;m just going to dump out the code here for anyone that&#039;s interested (email me if you have questions/comments - kevinm at rorbe.com ): 

# we use two libraries for this example 
require &#039;hmac-sha1&#039; 
require &#039;soap/rpc/driver&#039; 

# set up some default variables 
url = &quot;draftwizard.com&quot; 
responsegroup = &quot;Rank&quot; 
temp = Time.now.utc 

# get the time into the format for creating our signature 
t1 = temp.strftime(&quot;%Y-%m-%dT%H:%M:%SZ&quot;) 

newtime = t1.to_s 

encval = &quot;AlexaWebInfoServiceUrlInfo&quot; + t1.to_s 

# now actually create our signature (based on rules supplied in AWS documentation) 
myhmac = HMAC::SHA1.digest(&quot;YOUR AMAZON/ALEXA KEY TO GENERATE SIGNATURE&quot;, encval) 

# it needs to be binary, and for some reason the packing was addining one extra character; hence the chomp 
myhmac = myhmac.to_a.pack(&quot;m&quot;).chomp 

# now we can set up our driver 
driver = SOAP::RPC:: Driver.new(&quot;awis.amazonaws.com/onca/soap?Service=AlexaWebInfoService&quot;,&quot;webservices.amazon.com/AWSAlexa/2005-07-11&quot;) 

driver.add_rpc_method_with_soapaction_as(&quot;test&quot;, &quot;UrlInfo&quot;, &quot;UrlInfo&quot;, &quot;AWSAccessKeyId&quot;, &quot;Signature&quot;, &quot;Timestamp&quot;, &quot;Url&quot;, &quot;ResponseGroup&quot;) 

# and finally we can make ou real request for the data 
result = driver.test(&quot;YOUR ALEXA KEY&quot;, myhmac, newtime, url, responsegroup) 

# and display the results. 
puts result[1][&quot;Alexa&quot;][&quot;TrafficData&quot;][&quot;Rank&quot;] 


The driver = line above has a space after the RCP colons (and before the word Driver)...that&#039;s because the colon D on this msg. board renders as a smiley...so I added the space so the image wouldn&#039;t render...but in your actual code, you can not have the space there. Just a head&#039;s up.</description>
		<content:encoded><![CDATA[<p>One example that I had intially intended to get into the PDF I published through O&#8217;Reilly (Web Services with Rails) was a client for the Alexa Page rank service&#8230;it didn&#8217;t really fit into any of the specific areas I ended up covering, so I&#8217;m just going to dump out the code here for anyone that&#8217;s interested (email me if you have questions/comments &#8211; kevinm at rorbe.com ): </p>
<p># we use two libraries for this example<br />
require &#8216;hmac-sha1&#8242;<br />
require &#8217;soap/rpc/driver&#8217; </p>
<p># set up some default variables<br />
url = &#8220;draftwizard.com&#8221;<br />
responsegroup = &#8220;Rank&#8221;<br />
temp = Time.now.utc </p>
<p># get the time into the format for creating our signature<br />
t1 = temp.strftime(&#8221;%Y-%m-%dT%H:%M:%SZ&#8221;) </p>
<p>newtime = t1.to_s </p>
<p>encval = &#8220;AlexaWebInfoServiceUrlInfo&#8221; + t1.to_s </p>
<p># now actually create our signature (based on rules supplied in AWS documentation)<br />
myhmac = HMAC::SHA1.digest(&#8221;YOUR AMAZON/ALEXA KEY TO GENERATE SIGNATURE&#8221;, encval) </p>
<p># it needs to be binary, and for some reason the packing was addining one extra character; hence the chomp<br />
myhmac = myhmac.to_a.pack(&#8221;m&#8221;).chomp </p>
<p># now we can set up our driver<br />
driver = SOAP::RPC:: Driver.new(&#8221;awis.amazonaws.com/onca/soap?Service=AlexaWebInfoService&#8221;,&#8221;webservices.amazon.com/AWSAlexa/2005-07-11&#8243;) </p>
<p>driver.add_rpc_method_with_soapaction_as(&#8221;test&#8221;, &#8220;UrlInfo&#8221;, &#8220;UrlInfo&#8221;, &#8220;AWSAccessKeyId&#8221;, &#8220;Signature&#8221;, &#8220;Timestamp&#8221;, &#8220;Url&#8221;, &#8220;ResponseGroup&#8221;) </p>
<p># and finally we can make ou real request for the data<br />
result = driver.test(&#8221;YOUR ALEXA KEY&#8221;, myhmac, newtime, url, responsegroup) </p>
<p># and display the results.<br />
puts result[1]["Alexa"]["TrafficData"]["Rank"] </p>
<p>The driver = line above has a space after the RCP colons (and before the word Driver)&#8230;that&#8217;s because the colon D on this msg. board renders as a smiley&#8230;so I added the space so the image wouldn&#8217;t render&#8230;but in your actual code, you can not have the space there. Just a head&#8217;s up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruby/Amazon</title>
		<link>http://www.roryhansen.ca/2005/07/18/amazon-web-services-on-rails/comment-page-1/#comment-481</link>
		<dc:creator>Ruby/Amazon</dc:creator>
		<pubDate>Wed, 05 Jul 2006 10:13:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/?p=25#comment-481</guid>
		<description>[...] Ruby/Amazon ist eine Ruby Bibliothek fÃ¼r den Zugriff auf die Webservices von Amazon via REST (XML Ã¼ber HTTP). Die Dokumentation der Bibliothek kommt Ã¼ber RDoc und findet sich hier. Eine etwas ausfÃ¼hrlichere Beschreibung inklusive Beispiel hat Rory. [...]</description>
		<content:encoded><![CDATA[<p>[...] Ruby/Amazon ist eine Ruby Bibliothek fÃ¼r den Zugriff auf die Webservices von Amazon via REST (XML Ã¼ber HTTP). Die Dokumentation der Bibliothek kommt Ã¼ber RDoc und findet sich hier. Eine etwas ausfÃ¼hrlichere Beschreibung inklusive Beispiel hat Rory. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Like Your Work &#187; Blog Archive &#187; links for 2006-07-05</title>
		<link>http://www.roryhansen.ca/2005/07/18/amazon-web-services-on-rails/comment-page-1/#comment-471</link>
		<dc:creator>Like Your Work &#187; Blog Archive &#187; links for 2006-07-05</dc:creator>
		<pubDate>Wed, 05 Jul 2006 00:26:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/?p=25#comment-471</guid>
		<description>[...] Rory on Rails Â» Amazon Web Services on Rails (tags: amazon WebServices RubyOnRails ruby rails) [...]</description>
		<content:encoded><![CDATA[<p>[...] Rory on Rails Â» Amazon Web Services on Rails (tags: amazon WebServices RubyOnRails ruby rails) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iolaire McFadden</title>
		<link>http://www.roryhansen.ca/2005/07/18/amazon-web-services-on-rails/comment-page-1/#comment-52</link>
		<dc:creator>Iolaire McFadden</dc:creator>
		<pubDate>Sun, 05 Feb 2006 02:26:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/?p=25#comment-52</guid>
		<description>Rory, have you had any problems running this code on Rails 1.0?  

I&#039;m trying to use Ruby/Amazon to add some information to a product database and run into lots of either &quot;is not a module&quot;  or &quot;uninitialized constant Search&quot; type errors.

Things run ok from the command line so I&#039;m trying to figure out if there is a trick with 1.0?
Thank you,
iolaire</description>
		<content:encoded><![CDATA[<p>Rory, have you had any problems running this code on Rails 1.0?  </p>
<p>I&#8217;m trying to use Ruby/Amazon to add some information to a product database and run into lots of either &#8220;is not a module&#8221;  or &#8220;uninitialized constant Search&#8221; type errors.</p>
<p>Things run ok from the command line so I&#8217;m trying to figure out if there is a trick with 1.0?<br />
Thank you,<br />
iolaire</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peat Bakke</title>
		<link>http://www.roryhansen.ca/2005/07/18/amazon-web-services-on-rails/comment-page-1/#comment-19</link>
		<dc:creator>Peat Bakke</dc:creator>
		<pubDate>Thu, 20 Oct 2005 13:43:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/?p=25#comment-19</guid>
		<description>I can vouch for the simplicity of building an Amazon &quot;portal&quot; using Rails.  I built Peat&#039;s Books (http://www.peatsbooks.com/) from scratch (without the ruby/amazon package) in my spare time over a few days.  It&#039;s pretty straight forward to use net/http for making REST queries, and REXML (http://www.germane-software.com/software/rexml/) to parse Amazon&#039;s responses.  Building an Amazon site is a pretty friendly bootcamp for learning about web services.  :)</description>
		<content:encoded><![CDATA[<p>I can vouch for the simplicity of building an Amazon &#8220;portal&#8221; using Rails.  I built Peat&#8217;s Books (<a href="http://www.peatsbooks.com/" rel="nofollow">http://www.peatsbooks.com/</a>) from scratch (without the ruby/amazon package) in my spare time over a few days.  It&#8217;s pretty straight forward to use net/http for making REST queries, and REXML (<a href="http://www.germane-software.com/software/rexml/" rel="nofollow">http://www.germane-software.com/software/rexml/</a>) to parse Amazon&#8217;s responses.  Building an Amazon site is a pretty friendly bootcamp for learning about web services.  :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
