--markdown--
Ruby wrapper around Google URL Shortener REST API.
Features:
- shorten long URLs to Google short ones
- expand Google short URLs
- analyse Google short URLs usage
gem install googlus
In your Ruby code:
Googlus::Shorten.new(long_url).short_url
Googlus::Expand.new(short_url).url
Googlus::Analytic.new(url).to_s
On the command-line:
$ googlus -s http://www.bounga.org # Shorten URL
$ googlus -e http://goo.gl/arOIJ # Expand short URL
$ googlus -a http://goo.gl/arOIJ # Get analytics for short URL
If you want to contribute you should take a look at:
Problems, comments, and suggestions are welcome on the ticket system.
Copyright (c) 2011 Nicolas Cavigneaux, released under the MIT license.