cypher / long_url

A small wrapper for the Long URL Please API

This URL has Read+Write access

cypher (author)
Wed Jun 03 05:32:39 -0700 2009
commit  281bb96ac25418322069f9c65d92375c06558584
tree    900a3d9265dc7dbef71b605484a4c98cd67fc273
parent  808ed13bc93c70945995c08b34c29ea25608136f
README.rdoc

long_url

A small wrapper for the Long URL Please (www.longurlplease.com/) API.

See www.longurlplease.com/docs for the API docs.

Usage

  require 'long_url'

  LongUrl.longen("http://bit.ly/enAo") # => { "http://bit.ly/enAo" => "http://www.boasas.com/?c=1030"}

You can also include LongUrl inside a class of yours:

  require 'long_url'

  class MyNiftyClass
    include LongUrl

    def my_nifty_method
      longen("http://bit.ly/enAo")
    end
  end

Copyright

Copyright © 2009 Markus Prinz. See LICENSE for details.