From 9c54fea4eaa2584259af0e4d6f8a54696357661d Mon Sep 17 00:00:00 2001 From: Kevin Ward <92186090+kward937@users.noreply.github.com> Date: Tue, 6 Feb 2024 14:12:46 -0500 Subject: [PATCH] Update Deprecated Function --- src/Client/ApiClient.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client/ApiClient.php b/src/Client/ApiClient.php index 3b86b2cf..84a03d2d 100644 --- a/src/Client/ApiClient.php +++ b/src/Client/ApiClient.php @@ -487,7 +487,7 @@ public function generateAccessToken($client_id = null, $client_secret = null, $c $resourcePath = "/oauth/token"; $queryParams = []; - $integrator_and_secret_key = "Basic " . utf8_decode(base64_encode("{$client_id}:{$client_secret}")); + $integrator_and_secret_key = "Basic " . mb_convert_encoding(base64_encode("{$client_id}:{$client_secret}"), 'ISO-8859-1', 'UTF-8'); $headers = [ "Authorization" => $integrator_and_secret_key, "Content-Type" => "application/x-www-form-urlencoded", @@ -526,7 +526,7 @@ public function refreshAccessToken($client_id = null, $client_secret = null, $re } $resourcePath = "/oauth/token"; $queryParams = []; - $integrator_and_secret_key = "Basic " . utf8_decode(base64_encode("{$client_id}:{$client_secret}")); + $integrator_and_secret_key = "Basic " . mb_convert_encoding(base64_encode("{$client_id}:{$client_secret}"), 'ISO-8859-1', 'UTF-8'); $headers = [ "Authorization" => $integrator_and_secret_key, "Content-Type" => "application/x-www-form-urlencoded",