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 { } else {
// Search API call for other terms // 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' => [ 'headers' => [
'Cookie' => new Cookie('currencyCode', $this->settings->currency) 'Cookie' => new Cookie('currencyCode', $this->settings->currency)
], ],
'query' => [ 'json' => [
'keyword' => $keyword, 'keyword' => $keyword,
], ],
]); ]);