Grails Bitly Plugin
You need be a registred in Bit.ly first
after registration you should get the API key here: http://bit.ly/a/your_api_key
The plugin includes two tags to make the process of shorten urls easy.
This tag short a url and returns the type of html tag you have chosen.
url - the url you want to shorten type - the return you want, can be a text, a link or a textField (optional)
<bitly:shorten type="textField" url="www.google.com"/>
This tag returns a qrcode image of a url.
url - the url you want to transform to qrcode
The plugin requires credentials to short url by your application. Please read the Authentication Credentials section on how to configure.
The following section describes where to get each authentication values needed for this application.
Access this page: http://bit.ly/a/your_api_key
You will see your Username and API Key in the form:
bitly Username: your_username bitly API Key: B_nk8njkjk345by90nuiippmvddstoe6023
add these to config.groovy as
grails.plugin.bitly.username = 'Your username' grails.plugin.bitly.key = 'Your secret'