From 24b627dd7c07c5ec021443b656b4a83432a4604f Mon Sep 17 00:00:00 2001 From: Hannes <31671206+xJuvi@users.noreply.github.com> Date: Tue, 18 Aug 2026 08:41:37 +0200 Subject: [PATCH] Change sentWith to nullable and add signingSecret --- src/Client.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Client.php b/src/Client.php index 9f7d5bc..38a52f1 100644 --- a/src/Client.php +++ b/src/Client.php @@ -21,7 +21,8 @@ class Client { protected array $headers = [ 'Accept: application/json', ]; - protected string $sentWith; + protected ?string $sentWith; + protected ?string $signingSecret; /** * @throws InvalidArgumentException @@ -38,6 +39,7 @@ public function __construct( // Always use the class constant, ignore the parameter $this->sentWith = self::SENT_WITH; + $this->signingSecret = $signingSecret; $this->headers[] = 'SentWith: ' . $this->sentWith; $this->setApiKey($this->apiKey); @@ -220,4 +222,4 @@ public function post(string $path, array $payload = []): mixed { public function get(string $path, array $params = []): mixed { return $this->request($path, HttpMethod::GET, $params); } -} \ No newline at end of file +}