Skip to content

Commit 2243821

Browse files
committed
feat: Update authentication header and user agent in Client.php
Replaced 'Authorization' header with 'X-FIRE-APIKEY' for API authentication. Updated 'User-Agent' to 'FireClient/1.0' to align with new client identification standards.
1 parent 225f45e commit 2243821

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ public function setHttpClient(?\GuzzleHttp\Client $httpClient = null): void
5050
'headers' => [
5151
'Accept' => 'application/json',
5252
'Content-Type' => 'application/json',
53-
'Authorization' => 'Bearer ' . $this->token,
54-
'User-Agent' => 'YourResellingClient/1.0'
53+
'X-FIRE-APIKEY' => $this->token,
54+
'User-Agent' => 'FireClient/1.0',
5555
],
5656
'allow_redirects' => false,
5757
'timeout' => 120

0 commit comments

Comments
 (0)