src/Mremi/UrlShortener/Provider/Bitly/OAuthClient.php
public function getAccessToken()
    {
        $client = new Client(array(
            'base_uri' => 'https://api-ssl.bitly.com/oauth/access_token',
        ));

        $response = $client->post(null, array(
            'auth' => array(
                $this->username,
                $this->password,
            ),
        ));

        return $response->getBody()->getContents();
    }
public function getAccessToken()
    {
        $client = new Client(array(
            'base_uri' => 'https://api-ssl.bitly.com/oauth/access_token',
        ));

        $response = $client->post(null, array(
            'auth' => array(
                $this->username,
                $this->password,
            ),
        ));

        return $response->getBody()->getContents();
    }
{@inheritdoc}