Use the new LCSC endpoint for batch searches

This commit is contained in:
Jan Böhmer 2025-09-21 23:51:11 +02:00
parent 2e0b5edd95
commit da30a6657e

View file

@ -382,11 +382,11 @@ class LCSCProvider implements BatchInfoProviderInterface
]);
} else {
// Search API call for other terms
$responses[$keyword] = $this->lcscClient->request('GET', self::ENDPOINT_URL . "/search/global", [
$responses[$keyword] = $this->lcscClient->request('POST', self::ENDPOINT_URL . "/search/v2/global", [
'headers' => [
'Cookie' => new Cookie('currencyCode', $this->settings->currency)
],
'query' => [
'json' => [
'keyword' => $keyword,
],
]);