0
I Use This!
Activity Not Available
Analyzed over 1 year ago. based on code collected over 1 year ago.

Project Summary

URLShorten is an AS3 class with a collection of URL shortening services

Usage

var url:String = 'http://code.google.com/p/urlshorten/';
var us:URLShorten = new URLShorten();

us.addEventListener(URLShortenEvent.ON_URL_SHORTED, onUrlShorten);
us.tinyurl(url);

function onUrlShorten(event:URLShortenEvent):void
{
trace(event.service +":", event.url);
}

Factory, Error Handler and ApiKey Sample

var url:String = 'http://code.google.com/p/urlshorten/';
var us:URLShorten = new URLShorten();

us.addEventListener(URLShortenEvent.ON_URL_SHORTED, onUrlShorten);
us.addEventListener(URLShortenEvent.ON_ERROR, onError);
us.factory(url, 'bitly', "[your login]", "[your apiKey]");

function onUrlShorten(event:URLShortenEvent):void
{
trace(event.service +":", event.url);
}

function onError(event:URLShortenEvent):void
{
trace("Error:", event.data);
}

Service List

Name Link TinyURL http://tinyurl.com/ is.gd http://is.gd/ SNURL http://snurl.com Migre.me http://migre.me/ bit.ly http://bit.ly/ Digg http://digg.com/ tr.im http://tr.im/ kl.am http://kl.am/ Short.ie http://short.ie/

Comments?Follow me on twitter: @LucasAraujo

Tags

api as3 collection flex service shorten shortening url

In a Nutshell, urlshorten...

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    Black Duck offers a free trial so you can discover if there are open source vulnerabilities in your code
  • ...
    learn about Open Hub updates and features on the Open Hub blog
  • ...
    in 2016, 47% of companies did not have formal process in place to track OS code
  • ...
    you can subscribe to e-mail newsletters to receive update from the Open Hub blog

30 Day Summary

Apr 9 2016 — May 9 2016

12 Month Summary

May 9 2015 — May 9 2016

Ratings

Be the first to rate this project
Click to add your rating
   Spinner
Review this Project!