Closed michielgerritsen closed 2 years ago
I find it strange that tokens would limit the version of endpoints. To the best of my knowledge they only limit the type of endpoint.
In any case, this just fakes support for the new version, as the new version has schema changes. More needs to be changed to actually support the new version.
By the way, you can already instantiate a client with a custom WSDL url. If you want, you can also pass it to the wrapping class like so:
$client = new Postnl(/* stuff */);
$ddClient = new DeliveryDateClient($apikey, false, 'https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl');
$client->setDeliveryDateClient($ddClient);
Hi,
I've updated some of the endpoints because my api key is bound to those. I was unable to use this library with older endpoints. I will update/add more pull requests as i hit more bumps.