sendcloud-php-client icon indicating copy to clipboard operation
sendcloud-php-client copied to clipboard

API URL editable for constructor

Open arnausaima opened this issue 5 months ago • 2 comments

arnausaima avatar Jul 04 '25 09:07 arnausaima

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.

casperbakker avatar Jul 04 '25 14:07 casperbakker

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.

arnausaima avatar Jul 08 '25 10:07 arnausaima