An interface to google URL Shortener service http://code.google.com/apis/urlshortener/overview.html
Please get an authentication API Key from Google. Instructions can be found here http://code.google.com/apis/urlshortener/v1/authentication.html#key

Coldbox Settings needed :
google_URLShortenerAPIKey

Then just use the following methods:
shorten(longURL)
expand(shortURL, throwErroronMalware)
getInfo(shortURL, projection, throwErroronMalware)
place the googleURLShortener.cfc plugin in the plugins directory and make sure the google_URLShortenerAPIKey credentials are set for the service to work properly.
01/27/2011 - added getInfo method.

 

 
$ box install Google-URL-Shortener
5.00 / 1
  • Jan 23 2011 11:33 PM
  • Jun 09 2016 04:52 AM
  • 8848
  • 1065
  • 0