diff --git a/src/Mremi/UrlShortener/Provider/Bitly/OAuthClient.php b/src/Mremi/UrlShortener/Provider/Bitly/OAuthClient.php index c2f08ec..ff45962 100644 --- a/src/Mremi/UrlShortener/Provider/Bitly/OAuthClient.php +++ b/src/Mremi/UrlShortener/Provider/Bitly/OAuthClient.php @@ -48,10 +48,10 @@ public function __construct($username, $password) public function getAccessToken() { $client = new Client([ - 'base_uri' => 'https://api-ssl.bitly.com/oauth/access_token', + 'base_uri' => 'https://api-ssl.bitly.com/oauth/', ]); - $response = $client->post(null, [ + $response = $client->post('access_token', [ 'auth' => [ $this->username, $this->password,