-
-
Notifications
You must be signed in to change notification settings - Fork 178
Buerklin provider #1151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mkne
wants to merge
68
commits into
Part-DB:master
Choose a base branch
from
mkne:Buerklin-provider
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Buerklin provider #1151
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fixed Typo enviroment
…server into Buerklin-provider
Use Autowire to use values of environment variables Remove unwanted Code from LCSC-Provider Map json response to DTO variables
Ensure array keys exist before accessing them Optimize API calls to prevent unnecessary requests Improve error handling for better debugging Enhance readability and maintainability of functions
Buerklin provider
Change Order of Capabilities
# Conflicts: # .docker/symfony.conf # VERSION
…of BuerklinSettings
…, Add Customs Code without parseValueField
…tchInfoProviderInterface
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1151 +/- ##
============================================
+ Coverage 58.31% 58.41% +0.10%
- Complexity 7294 7384 +90
============================================
Files 580 581 +1
Lines 23207 23513 +306
============================================
+ Hits 13534 13736 +202
- Misses 9673 9777 +104 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Removed OAuthTokenManager mock from BuerklinProviderTest setup.
d-buchmann
suggested changes
Dec 16, 2025
…9c8c4470476a70b6f398e3d545550#r2622249199 Revert "Change order of capabilities in LCSCProvider.php" This reverts commit dfd6f33.
…9c8c4470476a70b6f398e3d545550#r2622249861 Revert "Change order of capabilities in PollinProvider.php" This reverts commit fc2e726.
…improve disabled_help
…AuthTokenManager Revert "add use OAuthTokenManager and create instance in constructor"This reverts commit 2a1e7c9.Revert "Add missing ) to retrieveROPCToken"This reverts commit 8df5cfc. Revert "Implement retrieveROPCToken as proposed in Part-DB#1151 (comment)" This reverts commit 66cc732.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request implements the Buerklin API and as Information Provider that also implements the BatchInfoProviderInterface.
Bürklin also offers an API. (Apply here: https://www.buerklin.com/de/services/eprocurement/)
Authorization works via Bearer Token that is requested via a POST-action to https://www.buerklin.com/authorizationserver/oauth/token/ and the following parameters:
client_id:cws-client
client_secret:{{PROVIDER_BUERKLIN_SECRET}}
grant_type:password
username:{{PROVIDER_BUERKLIN_USERNAME}}
password:{{PROVIDER_BUERKLIN_PASSWORD}}
There are only two GET-actions available:
Product search (example with the part number 66S447): https://www.buerklin.com/buerklinws/v2/buerklin/products/66S447/?curr=EUR&language=de
Free text search (example with the query string 'Resistor'): https://www.buerklin.com/buerklinws/v2/buerklin/products/search/?curr=EUR&language=en&pageSize=50¤tPage=0&query=Resistor&sort=relevance
I would set the parameters curr and language via PROVIDER_BUERKLIN_CURRENCY and PROVIDER_BUERKLIN_LANGUAGE.
Bürklin supplies a postman collection which I used to test the API and reverse engineer.
For reference: #868