diff --git a/src/Client.php b/src/Client.php index f440dda..afae5b6 100644 --- a/src/Client.php +++ b/src/Client.php @@ -14,6 +14,8 @@ class Client { + private const REQUEST_TIMEOUT = 10.0; + private Configuration $configuration; private HashGenerator $hashGenerator; private ClientInterface $guzzle; @@ -57,6 +59,7 @@ private function request(string $endpoint, Request\Request $request): array 'POST', sprintf('%s/%s', $this->configuration->getUrl(), $endpoint), [ + RequestOptions::TIMEOUT => self::REQUEST_TIMEOUT, RequestOptions::JSON => \array_merge($auth, $request->toArray()), ] );