Documentations‎ > ‎Class.FTShorten‎ > ‎

Version 1.x


About this PHP Class

The FTShorten Class is a development branch of the URL Shortener Plugin.

This PHP Class lies at the core of that plugin and provides the interface needed to send and receive a URL Shortening request to the list of supported services.

Updates to this class will be independent from the main URL Shortener Plugin branch.

Currently Supported Services

  • tinyurl
  • is.gd
  • su.pr
  • bit.ly
  • tr.im
  • short.ie
  • snipurl (aka Snurl / Snipr )
  • cl.gs
  • short.to
  • ping.fm
  • chilp.it
  • smsh (aka sm00sh)
  • u.nu
  • unfake.it
  • Awe.sm

Usage


  • For Version 1.0 :
Description
Property
A new class instance
$shorturl = new FTShorten();
URL Service
$shorturl->service
URL to Shorten
$shorturl->url
Service Username 
$shorturl->name
Service Password / User Key 
$shorturl->apikey
Define Prefix (for Snipurl / Snurl/ Snipr) 
$shorturl>apiprefix
Define Ping.fm Developer API key 
$shorturl->pingfmapi
Notes: If Snipurl / Snurl / Snipr service is required, set “service” to “snipurl” and define the desired domain using “apiprefix”




Release History:

  • Version 1.0 :
    • First Independent Release
    • Supports services from Version 2.0 of URL Shortener Plugin.