mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Moved API key to query options of HTTPClient in MouserProvider
This commit is contained in:
parent
4f0730b6f9
commit
7cd2662c77
1 changed files with 8 additions and 2 deletions
|
@ -120,7 +120,10 @@ class MouserProvider implements InfoProviderInterface
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$response = $this->mouserClient->request('POST', self::ENDPOINT_URL."/keyword?apiKey=".$this->api_key, [
|
$response = $this->mouserClient->request('POST', self::ENDPOINT_URL."/keyword", [
|
||||||
|
'query' => [
|
||||||
|
'apiKey' => $this->api_key,
|
||||||
|
],
|
||||||
'json' => [
|
'json' => [
|
||||||
'SearchByKeywordRequest' => [
|
'SearchByKeywordRequest' => [
|
||||||
'keyword' => $keyword,
|
'keyword' => $keyword,
|
||||||
|
@ -158,7 +161,10 @@ class MouserProvider implements InfoProviderInterface
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$response = $this->mouserClient->request('POST', self::ENDPOINT_URL."/partnumber?apiKey=".$this->api_key, [
|
$response = $this->mouserClient->request('POST', self::ENDPOINT_URL."/partnumber", [
|
||||||
|
'query' => [
|
||||||
|
'apiKey' => $this->api_key,
|
||||||
|
],
|
||||||
'json' => [
|
'json' => [
|
||||||
'SearchByPartRequest' => [
|
'SearchByPartRequest' => [
|
||||||
'mouserPartNumber' => $id,
|
'mouserPartNumber' => $id,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue