mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-06 11:09:29 +00:00
Use the new LCSC endpoint for batch searches
This commit is contained in:
parent
2e0b5edd95
commit
da30a6657e
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue