From 127419213abeab9178c2e08527bb63ff692bff28 Mon Sep 17 00:00:00 2001 From: kdekany Date: Fri, 12 Nov 2021 10:38:39 +0100 Subject: [PATCH] - fix Bit.ly url handling --- src/Mremi/UrlShortener/Provider/Bitly/OAuthClient.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,