sendcloud-php-client
sendcloud-php-client copied to clipboard
API URL editable for constructor
It would be nicer with a separate call to change the url. From a nice interface for the developer perspective, it is not needed to handle it via the constructor.
I understand you, but it's the least configurable part of any API (credentials and URL to go). In addition the variable is private. It doesn't allow you to do many things, especially from another entity/class/interface.
It's not only for the developer benefits. In my case, the production URL will be changed and firewalled for more security.