Adding Query string params to a Guzzle GET request?
Another variation of the correct answer:
$params = [
'query' => [
'option_1' => string,
'option_2' => string
]
];
And then call your request:
$response = $guzzle_client->request('GET','/api.com',$params);
I have the same problem. I found solution
public static function getGroupList($current=false) {
$response = self::getRestClient()->get(
[
'domains/{domainId}/pricelists',
['domainId' => self::getDomainId()]
],
[
'query' => [
current => $current
]
]
);
return new RestResponse($response);
Try
$response = $client->get(
[
$config->Layout['server'],
[]
],
[
'query' => [
$config->Layout['switches'], // ([ '-db' => 'database', '-lay' => 'layout', '-find' => true)
$config->Layout['options'], // other params
]
]
);