0.0
No commit activity in last 3 years
No release in over 3 years
Use multiple url shorteners to shorten single or multiple urls
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

active_support
>= 0
 Project Readme

README

Use multiple url shorteners with a single gem

Installation

gem install multi_shorten

Usage

Require the gem

require 'multi_shorten'

Instantiate the client

client = MultiShorten::Client.new

For single shortener apis

client.shorten({:mode => "single", :url => "http://www.google.com", :shortener => "b54"})

Sample response for this request

{:status => :success, :short_url => "http://b54.in/9o"}

For multiple apis

client.shorten({:mode => "multiple", :url => "http://www.google.com", :shorteners => ["b54", "qr_cx"]})

Sample response for this request

{"b54" => {:status => :fail }, "qr_cx" => {:status => :success, :short_url => "http://qr.cx/9o"}}

Available Shortener Codes

b54
linkee
goo_gl
is_gd
jumbo_tweet
meta_mark
mt_ny
qr_cx
shortr

Use the above codes to shorten your urls with the respective service