Skip to content
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

Use the accept language parameter #48

Merged
merged 3 commits into from
Jul 5, 2024

Conversation

jobjen02
Copy link
Contributor

@jobjen02 jobjen02 commented May 6, 2024

The $AcceptLanguage parameter didn't get used. So I updated the generator and the baseClient to use the parameter.

@jobjen02
Copy link
Contributor Author

jobjen02 commented May 6, 2024

Please let me know if there is anything that i'm missing!

Copy link
Contributor

@WoutervanderLoopNL WoutervanderLoopNL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great 👍

src/BaseClient.php Outdated Show resolved Hide resolved
@casperbakker
Copy link
Member

I cannot find in the documentation why this is needed and how it works. Can you show me what this is for?

@jobjen02
Copy link
Contributor Author

jobjen02 commented Jul 5, 2024

I cannot find in the documentation why this is needed and how it works. Can you show me what this is for?

In this endpoint for example: https://api.bol.com/retailer/public/redoc/v10/retailer.html#tag/Product-Content/operation/get-catalog-product. It expects the language as an header.

And it was possible in this package to pass the language as an parameter, but this parameter is never used now.

@casperbakker
Copy link
Member

Gotcha, thanks. Seems like it was only half-supported before.

@casperbakker casperbakker merged commit c38d156 into picqer:main Jul 5, 2024
3 checks passed
@casperbakker
Copy link
Member

WoutervanderLoopNL added a commit to WoutervanderLoopNL/bol-retailer-php-client that referenced this pull request Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants