The error message indicates that there is a problem with the SSL certificate. One possible solution is to disable SSL verification, but this is not recommended for security reasons. A better solution is to add the self-signed certificate to the trusted certificates list.
To do this, you can download the certificate from the website and save it to a file. Then, you can use the cacert option in Guzzle to specify the path to the certificate file.
Here's an example code snippet:
$client = new \GuzzleHttp\Client([
'base_uri' => 'https://seashore.greenmile.com',
'verify' => false, // disable SSL verification (not recommended)
'curl' => [
CURLOPT_CAINFO => '/path/to/certificate.pem', // specify path to certificate file
],
]);
$response = $client->get('/RouteEquipment/filter', [
'query' => [
'criteria' => json_encode([
'filters' => [
'*',
'equipment.id',
],
]),
],
]);
$body = $response->getBody();
Replace /path/to/certificate.pem with the actual path to the certificate file.