TinyUrl Plugin
Dependency :
compile ":tinyurl:0.1"
Summary
Installation
To install the plugin, you can typeAnd that's it, it will install the TinyUrl service in your application.
grails install-plugin tinyurl
Description
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 beanYour action
def tinyurlService
def post = new Post(params) //save your postdef newUrl = tinyurlService.tiny(post.link)//set your twitter status twitter.post("I've just posted about ${post.title} right here: ${newUrl}")