Allow slashes in digikey product ids

This commit is contained in:
Jan Böhmer 2023-07-17 23:21:30 +02:00
parent 2be76a488f
commit 52c6884e28
3 changed files with 11 additions and 4 deletions

View file

@ -135,7 +135,7 @@ class DigikeyProvider implements InfoProviderInterface
public function getDetails(string $id): PartDetailDTO
{
$response = $this->digikeyClient->request('GET', '/Search/v3/Products/' . $id, [
$response = $this->digikeyClient->request('GET', '/Search/v3/Products/' . urlencode($id), [
'auth_bearer' => $this->authTokenManager->getAlwaysValidTokenString(self::OAUTH_APP_NAME)
]);