Bounga / googlus

Ruby wrapper around Google URL Shortener REST API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

--markdown--

Googlus

Description

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

Installation

gem install googlus

Usage

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

Other

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.

About

Ruby wrapper around Google URL Shortener REST API.


Languages

Language:Ruby 100.0%