From 65af434792c205120f6b881554ed4ce95011e1a2 Mon Sep 17 00:00:00 2001 From: Angel Luis Nieto Ruiz Date: Mon, 20 Nov 2023 21:32:04 +0100 Subject: [PATCH] revert last change --- quipu-api/class-quipu-api-connection.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/quipu-api/class-quipu-api-connection.php b/quipu-api/class-quipu-api-connection.php index 5627fe1..408ab9f 100644 --- a/quipu-api/class-quipu-api-connection.php +++ b/quipu-api/class-quipu-api-connection.php @@ -189,8 +189,7 @@ private function request_access_token() { $curl = curl_init( self::API_URL.self::AUTH_URL ); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_POST, true); - $credentials = base64_encode($this->api_key . ":" . $this->api_secret); - curl_setopt($curl, CURLOPT_USERPWD, $credentials); + curl_setopt($curl, CURLOPT_USERPWD, $this->api_key . ":" . $this->api_secret) curl_setopt($curl, CURLOPT_HEADER,'Content-Type: application/x-www-form-urlencoded;charset=UTF-8'); curl_setopt($curl, CURLOPT_POSTFIELDS, array( 'grant_type' => 'client_credentials',