Login required
Download

TinyUrl Plugin

(1)
Author(s) lucastex
Current Release 0.1   (2 years ago)
Grails Version ?
Tags functionality  integration  tinyurl  utility 
Dependency
compile ":tinyurl:0.1"
Last updated by lucastex 2 years ago
To install the plugin, you can type

grails install-plugin tinyurl

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

Last updated by lucastex 2 years ago
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}")

Last updated by admin 2 years ago
Last updated by admin 2 years ago