public function shorten($url)
    {
        $link = new Link;
        $link->setLongUrl($url);
        $this->provider->shorten($link);
        return $link->getShortUrl();
    }
public function shorten($url)
    {
        $link = new Link;
        $link->setLongUrl($url);
        $this->provider->shorten($link);
        return $link->getShortUrl();
    }
public function shorten ( $ url ) { $ link = new Link ; $ link -> setLongUrl ( $ url ) ; $ this -> provider -> shorten ( $ link ) ; return $ link -> getShortUrl ( ) ; }
Shorten the given url

@param  string $url
@throws \Guzzle\Http\Exception\BadResponseException
@throws \Mremi\UrlShortener\Exception\InvalidApiResponseException
@return string
Shorten the given url