An interface to bit.ly URL shortener, via json
Settings NeededPlease add the following required settings to your coldbox configuration file.
- bitly_apiversion (optional) = The version of the api to use, defaults to 2.0.1
- bitly_apilogin = The login to use
- bitly_apikey = The api key to use
Then just use the following methods:
- shorten(longURL)
- expand(shortURL, userHash)
Drop in your plugins folder or coldbox extensions. Also make sure you add the required credentials to the bit.ly service in order for the plugin to work.