TinyUrl Plugin

  • Authors: Lucas Teixeira
1 vote
compile ":tinyurl:0.1"




To install the plugin, you can type

grails install-plugin tinyurl

And that's it, it will install the TinyUrl service in your application.


This plugin provides simple integration with the TinyUrl (http://www.tinyurl.com) service that create small urls from large ones.

Read more here: http://blog.lucastex.com/2009/03/24/my-tinyurl-plugin-released/

Example (after posting in your blog, twitter it!)

Inject the service bean

def tinyurlService

Your action

def post = new Post(params)
//save your post

def newUrl = tinyurlService.tiny(post.link)

//set your twitter status twitter.post("I've just posted about ${post.title} right here: ${newUrl}")