src/Mremi/UrlShortener/Provider/Google/GoogleProvider.php
public function shorten(LinkInterface $link)
    {
        $client = $this->createClient();

        $response = $client->post($this->getUri(), array_merge(
            array(
                'json' => array(
                    'longUrl' => $link->getLongUrl(),
                ),
            ),
            $this->options
        ));

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

        $link->setShortUrl($response->id);
    }
public function shorten(LinkInterface $link)
    {
        $client = $this->createClient();

        $response = $client->post($this->getUri(), array_merge(
            array(
                'json' => array(
                    'longUrl' => $link->getLongUrl(),
                ),
            ),
            $this->options
        ));

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

        $link->setShortUrl($response->id);
    }
{@inheritdoc}