BoxLang 🚀 A New JVM Dynamic Language Learn More...

Google URL Shortener

v2.0 Plugins
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

No collaborators yet.
 
5.00 / 1
  • {{ getFullDate("2011-01-23T23:33:45Z") }}
  • {{ getFullDate("2016-06-09T04:52:21Z") }}
  • 15,820
  • 5,560