I am working on a project with the rest of the API. I use the GuzzleHttp library to get / place data in the API.
Is there a way in which you can change the URL of GuzzleHttp \ Client in a run. My idea is that I have several endpoints of the same api, but the base url is not the same, so I want to create one Client with some parameters, but change the base url when I want to execute some request .
Simeon kolev
source share