Skip to content

mauropm/Titanium-URL-Shortener

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

=== Titanium URL Shortener ===
Contributors: Tim Pearson (gouki9@gmail.com)
Contributors: Jean-Rene Auger (info@appwapp.com)

== Description ==
A simple javascript class that will allow you to shorten a url using the bit.ly, is.gd or surl.me services.  bit.ly account is required if that service is to be used.

== Installation ==
1. Include the url shortener class.
2. Create an instance of the class with the service you wish to use.
3. If required, set any authentication items like login id and/or api key.
4. Call the shorten method on the class for the url you wish to shorten.

// URL Shortener Library
Ti.include('libs/url_shortener/url_shortener.js');

// Create URL Shortener Instance
var url_shortener =  new url_shortener(SERVICE);
 
*** bit.ly ***
url_shortener.setAuth(login, api_key);
var short_url = url_shortener.shorten(URL_TO_SHORTEN);

*** is.gd ***
var short_url = url_shortener.shorten(URL_TO_SHORTEN);

*** surl.me ***
var short_url = url_shortener.shorten(URL_TO_SHORTEN);

== Changelog ==
= 1.02 =
* Added surl.me as an available service option

= 1.01 =
* Reworked the main code and added is.gd as an available service option

= 1.0 =
* Initial Release

About

URL Shortener for Appcelerator's Titanium

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published