Skip to content

Commit da30a66

Browse files
committed
Use the new LCSC endpoint for batch searches
1 parent 2e0b5ed commit da30a66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Services/InfoProviderSystem/Providers/LCSCProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,11 +382,11 @@ public function searchByKeywordsBatch(array $keywords): array
382382
]);
383383
} else {
384384
// Search API call for other terms
385-
$responses[$keyword] = $this->lcscClient->request('GET', self::ENDPOINT_URL . "/search/global", [
385+
$responses[$keyword] = $this->lcscClient->request('POST', self::ENDPOINT_URL . "/search/v2/global", [
386386
'headers' => [
387387
'Cookie' => new Cookie('currencyCode', $this->settings->currency)
388388
],
389-
'query' => [
389+
'json' => [
390390
'keyword' => $keyword,
391391
],
392392
]);

0 commit comments

Comments
 (0)