README.txt in googleajax-0.1.0 vs README.txt in googleajax-0.2.0

- old
+ new

@@ -3,43 +3,70 @@ * Docs: http://googleajax.rubyforge.org * Code: http://github.com/monki/google_ajax/tree/master == DESCRIPTION: -Ruby wrapper to the Google AJAX API REST interfaces(Feeds, Language and Search). +Ruby wrapper for Google AJAX API REST interfaces(Feeds, Language and Search). == SYNOPSIS: -* First, setup referer: GoogleAjax.referer = 'http://mydomain.com' -* Optionally, you can also set an api_key: GoogleAjax.api_key = 'YOUR_API_KEY' + # First, setup referer: + GoogleAjax.referer = [your domain name here] -=== Now you are set to go, so a few examples: -* GoogleAjax::Feed.find('ruby') # Find top 10 feeds for 'ruby' -* GoogleAjax::Feed.load('http://monki.geemus.com/feed/atom.xml') # Load 4 most recent entries from feed 'http://monki.geemus.com/feed/atom.xml' -* GoogleAjax::Feed.lookup('http://monki.geemus.com') # Find feed for 'http://monki.geemus.com' -* GoogleAjax::Language.detect('Ciao mondo') # Find the language of the string 'Ciao mondo' -* GoogleAjax::Language.translate('Hello world', 'en', 'it') # Translate 'Hello world' to italian -* GoogleAjax::Search.blogs('ruby') # Find top 4 blogs for 'ruby' -* GoogleAjax::Search.books('ruby') # Find top 4 books for 'ruby' -* GoogleAjax::Search.images('ruby') # Find top 4 images for 'ruby' -* GoogleAjax::Search.local('ruby', 48.8565, 2.3509) # Find top 4 local results for 'ruby' at latitude 48.8565, longitude 2.3509 -* GoogleAjax::Search.news('ruby') # Find top 4 news results for 'ruby' -* GoogleAjax::Search.video('ruby') # Find top 4 video results for 'ruby' -* GoogleAjax::Search.web('Hello world') # Find top 4 web page results for 'Hello world' + # Optionally, you can set an api_key: + GoogleAjax.api_key = [your api key here] +=== Now you are set to go, so here are a few examples: + + # Find top 10 feeds for 'ruby' + GoogleAjax::Feed.find('ruby') + + # Load 4 most recent entries from 'http://monki.geemus.com/feed/atom.xml' + GoogleAjax::Feed.load('http://monki.geemus.com/feed/atom.xml') + + # Find feed for 'http://monki.geemus.com' + GoogleAjax::Feed.lookup('http://monki.geemus.com') + + # Find the language of the string 'Ciao mondo' + GoogleAjax::Language.detect('Ciao mondo') + + # Translate 'Hello world' to italian + GoogleAjax::Language.translate('Hello world', 'en', 'it') + + # Find top 4 blogs for 'ruby' + GoogleAjax::Search.blogs('ruby') + + # Find top 4 books for 'ruby' + GoogleAjax::Search.books('ruby') + + # Find top 4 images for 'ruby' + GoogleAjax::Search.images('ruby') + + # Find top 4 local results for 'ruby' at latitude 48.8565, longitude 2.3509 + GoogleAjax::Search.local('ruby', 48.8565, 2.3509) + + # Find top 4 news results for 'ruby' + GoogleAjax::Search.news('ruby') + + # Find top 4 video results for 'ruby' + GoogleAjax::Search.video('ruby') + + # Find top 4 web page results for 'Hello world' + GoogleAjax::Search.web('Hello world') + == REQUIREMENTS: -* JSON gem to parse the responses +* JSON gem to parse responses, or rails == INSTALL: -* sudo gem install googleajax --include-dependencies + sudo gem install googleajax == LICENSE: (The MIT License) -Copyright (c) 2008 monki(Wesley Beary) => monki@geemus.com +Copyright (c) 2009 {geemus (Wesley Beary)}[http://github.com/geemus] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,