A Ruby API for the http://bit.ly URL-shortening service
require 'rubygems'
require 'bitly4r'
login, api_key = 'bitlyapidemo', 'R_0da49e0a9118ff35f52f629d2d71bf07'
long_url = 'http://rubyforge.org/'
client = Bitly4R.Keyed(login, api_key)
short_url = client.shorten(long_url)
- API Documentation @ RubyForge
- RESTful API Documentation