--markdown--

Googlus

Description


Ruby wrapper for Google URL Shortener REST API.

Features:

  • shorten URLs

  • expand URLs

  • analyse URLs usage

Installation


gem install googlus

Usage


In your Ruby code:

Googlus::Shorten.new(long_url).short_url
Googlus::Expand.new(short_url).url

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

Other


If you want to contribute you should take a look at:

You can have a look at [RDoc](rubydoc.info/gems/googlus/) too.

Problems, comments, and suggestions are welcome on the [ticket system](www.bitbucket.org/Bounga/googlus/issues/new/).

Copyright © 2011 Nicolas Cavigneaux, released under the MIT license