\Horde_Service_UrlShortener_TinyUrl

UrlShortener class for TinyUrl.

Summary

Methods
Properties
Constants
__construct()
shorten()
No public properties found
API_URL
No protected methods found
$_params
$_http
N/A
No private methods found
No private properties found
N/A

Constants

API_URL

API_URL

Properties

$_params

$_params : array

Type

array

$_http

$_http : \Horde_Http_Client

Type

\Horde_Http_Client

Methods

__construct()

__construct(\Horde_Http_Client  $http, array  $params = array()) : \Horde_UrlShorten

Constructor

Parameters

\Horde_Http_Client $http

[description]

array $params

= array() [description]

Returns

\Horde_UrlShorten

shorten()

shorten(string  $url) : string

Parameters

string $url

The URL to shorten

Throws

\Horde_UrlShorten_Exception

Returns

string —

The shortened URL