/** * Expand the given url * * @param string $url * @throws \Guzzle\Http\Exception\BadResponseException * @throws \Mremi\UrlShortener\Exception\InvalidApiResponseException * @return string */ public function expand($url) { $link = new Link(); $link->setShortUrl($url); $this->provider->expand($link); return $link->getLongUrl(); }