Path: | lib/plugins/tinyurl.rb |
Last Update: | Tue Feb 23 10:15:21 +0000 2010 |
SHORTURL_MAKERS | = | [ { :host => "api.bit.ly", :format => '/shorten?version=2.0.1&longUrl=%s&login=termtter&apiKey=R_e7f22d523a803dbff7f67de18c109856' }, { :host => "to.ly", :format => '/api.php?longurl=%s' }, { :host => "is.gd", :format => '/api.php?longurl=%s' }, { :host => "tinyurl.com", :format => '/api-create.php?url=%s' }, ] |
TINYURL_HOOK_COMMANDS | = | [:update, :reply] |
URI_REGEXP | = | URI.regexp(%w(http https ftp)) |