An interface to bit.ly URL shortener, via json

Settings Needed
Please 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.
Version 1.0
  • Initial release

 

 
$ box install Bitly-URL-Shortener
5.00 / 1
  • Dec 05 2009 01:24 PM
  • Jun 10 2016 09:40 AM
  • 14241
  • 1911
  • 2