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

Add setConsumerKey function #150

Merged
merged 2 commits into from
Jun 26, 2024
Merged

Add setConsumerKey function #150

merged 2 commits into from
Jun 26, 2024

Conversation

Adadov
Copy link
Contributor

@Adadov Adadov commented Jun 17, 2024

This function will allow to quickly switch between multiple consumer keys using the same instance.

Adadov added 2 commits June 17, 2024 04:11
function decodeResponse was expecting Response changed it to ResponseInterface

Signed-off-by: David Olivier <[email protected]>
It allows to switch between consumer keys keeping the same object

Signed-off-by: David Olivier <[email protected]>
@amstuta
Copy link
Contributor

amstuta commented Jun 18, 2024

Hello @Adadov, thanks for your contribution !

I'm wondering, why wouldn't you want to instantiate several clients instead of changing the consumer key ?

@Adadov
Copy link
Contributor Author

Adadov commented Jun 18, 2024

I use it with a container, instantiation is made using autowire.
I needed to use multiple consumer access, the easiest way was to instantiate without consumer key and define it dynamically later.

@amstuta amstuta merged commit f417038 into ovh:master Jun 26, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants