No commit activity in last 3 years
No release in over 3 years
whitme is a Ruby library for the URL shortener service whit.me
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

whitme¶ ↑

whitme is a Ruby library for the URL shortener service whit.me

The whit.me URL service is available at whit.me and it’s API at www.whit.me/api/docs

Features¶ ↑

  • shortens and expands (multiple) URLs

  • 100% API features implemented

  • json (json-pure for JRuby) as the only external dependency

  • Ruby 1.8, 1.9 and JRuby compatible

Install¶ ↑

$ gem sources -a http://gems.github.com
$ sudo gem install rubenfonseca-whitme

Example¶ ↑

require 'whitme'
url = Whitme.short(:url => 'http://www.google.com', :note => 'foo')
puts url.hash # the shortened URL

url = Whitme.short(:url => ['http://google.com', 'http://sapo.pt'])
puts url.hash # the shortened URL for multiple URLs

Copyright © 2009 Ruben Fonseca. See LICENSE for details.