query

Summary : Associative array of query string values or query string to add tothe request.

Types : - array - string

Default : None

Constant : GuzzleHttp\RequestOptions::QUERY

1. // Send a GET request to /get?foo=bar
2. $client->request('GET', '/get', ['query' => ['foo' => 'bar']]);

Query strings specified in the query option will overwrite all query stringvalues supplied in the URI of a request.

1. // Send a GET request to /get?foo=bar
2. $client->request('GET', '/get?abc=123', ['query' => ['foo' => 'bar']]);