forked from ttiimmaahh/Titanium-URL-Shortener
-
Notifications
You must be signed in to change notification settings - Fork 1
mauropm/Titanium-URL-Shortener
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
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 0
No packages published