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

 

 
  •   Luis Majano
  • 1.0 is the latest of 1 release(s)
  • Published on Jun 10 2016 09:40 AM
box install Bitly-URL-Shortener

Add the following to your dependencies or devdependencies objects in your box.json, so CommandBox can track it as a dependency.

"Bitly-URL-Shortener" : "stable"
5.00 / 1
  • Dec 05 2009 01:24 PM
  • Jun 10 2016 09:40 AM
  • 13985
  • 1878
  • 2