src/Mremi/UrlShortener/Provider/Bitly/BitlyProvider.php
public function expand(LinkInterface $link, $hash = null)
    {
        $client = $this->createClient();

        $response = $client->get(sprintf('/v3/expand?access_token=%s&shortUrl=%s&hash=%s',
            $this->auth->getAccessToken(),
            urlencode($link->getShortUrl()),
            $hash
        ), $this->options);

        $response = $this->validate($response->getBody()->getContents());

        $link->setLongUrl($response->data->expand[0]->long_url);
    }
public function expand(LinkInterface $link, $hash = null)
    {
        $client = $this->createClient();

        $response = $client->get(sprintf('/v3/expand?access_token=%s&shortUrl=%s&hash=%s',
            $this->auth->getAccessToken(),
            urlencode($link->getShortUrl()),
            $hash
        ), $this->options);

        $response = $this->validate($response->getBody()->getContents());

        $link->setLongUrl($response->data->expand[0]->long_url);
    }
{@inheritdoc}

@param LinkInterface $link A link instance
@param string        $hash A Bit.ly hash

@throws InvalidApiResponseException