Activity Not Available
0
I Use This!

Project Summary

Analyzed 4 months ago. based on code collected 4 months ago.

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

Share

In a Nutshell, urlshorten...

Activity

30 Day Summary

Apr 9 2016 — May 9 2016

12 Month Summary

May 9 2015 — May 9 2016

Community

Ratings

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