From ee76492fa0ac1c90cc2d792809ad2c4d60b5efeb Mon Sep 17 00:00:00 2001 From: Damian Date: Tue, 17 Sep 2019 08:46:04 +1200 Subject: [PATCH] Allow setting of Guzzle timeout in ApiClient --- src/ApiClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ApiClient.php b/src/ApiClient.php index 015395d..4d17c06 100644 --- a/src/ApiClient.php +++ b/src/ApiClient.php @@ -34,7 +34,7 @@ public function __construct($params) $this->fetcher = new Guzzle([ 'base_uri' => 'https://api.workflowmax.com/', - 'timeout' => 30.0, + 'timeout' => (isset($params['timeout'])) ? $params['timeout'] : 30.0, ]); }