FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

Google URL Shortener

v2.0 Public
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)

Dependencies (0)


Dev Dependencies (0)


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

No collaborators yet.
 
5.00 / 1
  • {{ getFullDate("Jan 23 2011 11:01 PM GMT") }}
  • {{ getFullDate("Jun 09 2016 04:06 AM GMT") }}
  • 13,364
  • 3,778
  • 14