From e4487ae974650f64938adfd05cfb602c09ecda02 Mon Sep 17 00:00:00 2001 From: Arthur de Moulins Date: Fri, 13 Oct 2023 19:41:40 +0200 Subject: [PATCH] WIP --- expose/api/src/Matomo/PhraseanetClient.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/expose/api/src/Matomo/PhraseanetClient.php b/expose/api/src/Matomo/PhraseanetClient.php index 428255636..f6ae14721 100644 --- a/expose/api/src/Matomo/PhraseanetClient.php +++ b/expose/api/src/Matomo/PhraseanetClient.php @@ -32,6 +32,9 @@ public function patchField(array $stat): void unset($stat['idsubdatatable']); $this->client->request('GET', sprintf('/records/%s/%s', $baseId, $recordId), [ + 'headers' => [ + 'Authorization' => 'OAuth '.$this->authToken, + ], 'json' => [ 'metadatas' => [ [