<?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>Visoft, Inc. Blogs &#187; google_books</title>
	<atom:link href="http://blogs.visoftinc.com/category/google_books/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.visoftinc.com</link>
	<description>.NET, ASP.NET, AJAX, Ruby and more</description>
	<lastBuildDate>Mon, 12 Mar 2012 18:05:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Introducing a Ruby Wrapper for Google Books API</title>
		<link>http://blogs.visoftinc.com/2011/08/10/introducing-a-ruby-wrapper-for-google-books-api/</link>
		<comments>http://blogs.visoftinc.com/2011/08/10/introducing-a-ruby-wrapper-for-google-books-api/#comments</comments>
		<pubDate>Wed, 10 Aug 2011 11:06:00 +0000</pubDate>
		<dc:creator>Damien White</dc:creator>
				<category><![CDATA[google_books]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<guid isPermaLink="false">http://blogs.visoftinc.com/?p=245</guid>
		<description><![CDATA[Books.  Personally, I own a ton of them.  Add in my wife’s collection, and phew.  A few years ago, I decided to get my collection under control.  I have bookcases upon bookcases all over the place and I would lose track of my books.  I wanted to catalog my collection, so I built a site [...]]]></description>
			<content:encoded><![CDATA[<p>Books.  Personally, I own a ton of them.  Add in my wife’s collection, and phew.  A few years ago, I decided to get my collection under control.  I have bookcases upon bookcases all over the place and I would lose track of my books.  I wanted to catalog my collection, so I built a site to do just that.</p>
<p>The time has come to rebuild the project.  It’s pretty old, is missing a lot of features, has spun off into another site as well, and, and, and…  That’s for another post.  Anyway, back to the matter at hand.</p>
<p>For the past couple of years, I used to get my book information from <a href="https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html" target="_blank">Amazon’s Product Advertising API</a> for Affiliates. Well, times change, and <a href="http://techcrunch.com/2011/06/10/amazon-shuts-down-associates-affiliate-program-in-connecticut-over-online-sales-tax/" target="_blank">thanks to the State of Connecticut</a>, I’m no longer an Amazon affiliate.  I told you that story to tell you this one…</p>
<p><span id="more-245"></span></p>
<h2>New Options</h2>
<p>Whilst Amazon hasn’t kicked me out yet, since I was redesigning my sites (Rails 3.1 Engines FTW), I decided to look for other APIs.  My search led me to the <a href="http://code.google.com/apis/books/" target="_blank">Google Books API</a>.  I really liked it.  So, off I went to look for a Ruby wrapper around the API.  I found <a href="http://hakanensari.com/" target="_blank">Hakan Ensari’s</a> <a href="http://rubygems.org/gems/google-book" target="_blank">google-book</a> gem (<a href="https://github.com/papercavalier/google-book" target="_blank">source hosted</a> on <a href="http://github.com/" target="_blank">GitHub</a>, of course).  Cool, but after reading the <a href="https://github.com/papercavalier/google-book#readme" target="_blank">README</a>, I realized his wrapper worked against the <a href="http://code.google.com/apis/books/docs/gdata/developers_guide_protocol.html" target="_blank">Google Book Search Data API</a>. This turns out to be a deprecated API “<strong>Important:</strong> The Google GData Books API is deprecated as of May 26, 2011 and will be fully retired on December 1, 2011. Therefore, we encourage you to move to the new <a href="http://code.google.com/apis/books/docs/v1/getting_started.html">Books API</a>.”  Hmm, so what’s a guy to do?</p>
<h2>Introducing google_books</h2>
<p>I initially started with a fork of the google-book project on GitHub, but came to the conclusion that a whole lot had changed in the new API.  I eventually decided to create a new gem called <a href="http://rubygems.org/gems/google_books" target="_blank">google_books</a>.  The project is greatly inspired by Hakan’s gem.  The google_books gem has similar syntax to Hakan’s, and in places I followed his lead.</p>
<p>The gem is really straight-forward to use.  It is in its infancy, but I will be adding to project as I work on rebuilding my sites.  Check out the README for usage and examples.  There are also a <a href="https://github.com/visoft/google_books/tree/master/examples" target="_blank">few examples</a> in the project itself that you can play with.  Let me know what you think.  Fork the project; add cool stuff.  <a href="http://en.wikipedia.org/wiki/Open_source" target="_blank">Open source</a> projects are so rewarding, especially in the Ruby community.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.visoftinc.com/2011/08/10/introducing-a-ruby-wrapper-for-google-books-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

