mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-06 11:09:29 +00:00
Fixed LCSC provider
LCSC has changed its search API, so it was broken. Fixes issue #1018
This commit is contained in:
parent
9b17efc12c
commit
065ef9f8ae
1 changed files with 2 additions and 2 deletions
|
|
@ -123,11 +123,11 @@ class LCSCProvider implements InfoProviderInterface
|
||||||
*/
|
*/
|
||||||
private function queryByTerm(string $term): array
|
private function queryByTerm(string $term): array
|
||||||
{
|
{
|
||||||
$response = $this->lcscClient->request('GET', self::ENDPOINT_URL . "/search/global", [
|
$response = $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' => $term,
|
'keyword' => $term,
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue