diff -r 5e7a0fedabdf -r 877f952ae2bd web/lib/Zend/Service/ShortUrl/MetamarkNet.php --- a/web/lib/Zend/Service/ShortUrl/MetamarkNet.php Thu Mar 21 17:31:31 2013 +0100 +++ b/web/lib/Zend/Service/ShortUrl/MetamarkNet.php Thu Mar 21 19:50:53 2013 +0100 @@ -14,7 +14,7 @@ * * @category Zend * @package Zend_Service_ShortUrl - * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * @version $Id: $ */ @@ -29,7 +29,7 @@ * * @category Zend * @package Zend_Service_ShortUrl - * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ class Zend_Service_ShortUrl_MetamarkNet extends Zend_Service_ShortUrl_AbstractShortener @@ -40,9 +40,9 @@ * @var string */ protected $_baseUri = 'http://xrl.us/'; - + protected $_apiUri = 'http://metamark.net/api/rest/simple'; - + /** * This function shortens long url * @@ -53,12 +53,12 @@ public function shorten($url) { $this->_validateUri($url); - + $this->getHttpClient()->setUri($this->_apiUri); $this->getHttpClient()->setParameterGet('long_url', $url); - + $response = $this->getHttpClient()->request(); - + return $response->getBody(); } @@ -74,12 +74,12 @@ $this->_validateUri($shortenedUrl); $this->_verifyBaseUri($shortenedUrl); - + $this->getHttpClient()->setUri($this->_apiUri); $this->getHttpClient()->setParameterGet('short_url', $shortenedUrl); - + $response = $this->getHttpClient()->request(); - + return $response->getBody(); } }