Adds the query parameter to the guzzle call for GET requests.

This commit is contained in:
Adam Malone
2017-09-14 08:20:18 +10:00
parent a4ddb61d2a
commit 7d838d7f5f
15 changed files with 77 additions and 48 deletions

View File

@@ -38,9 +38,9 @@ class Guzzle implements Adapter
/**
* @inheritDoc
*/
public function get(String $uri, array $headers = array()): ResponseInterface
public function get(String $uri, array $query = array(), array $headers = array()): ResponseInterface
{
$response = $this->client->get($uri, ['headers' => $headers]);
$response = $this->client->get($uri, ['query' => $query, 'headers' => $headers]);
$this->checkError($response);
return $response;