-
shorten($url); -
Takes the given
$urland passes it to the service in order to obtain a shortened URL.If the provided
$urlis invalid, an exception will be raised. -
unshorten($shortenedUrl); -
Takes the provided
$shortenedUrland passes it to the service in order to obtain the original URL.If the provided
$shortenedUrlis invalid, an exception will be raised. -
setHttpClient(Zend_Http_Client $httpClient); Use this method to set the HTTP client used for communicating with the service.
-
getHttpClient(); Use this method to access the HTTP client attached to the service. By default, this will lazy-load an instance of
Zend_Http_Clientif no client is yet attached.




