DivideBV / Postnl

Library to connect to PostNL's SOAP service called CIF
GNU General Public License v2.0
31 stars 40 forks source link

Updated endpoints #66

Closed michielgerritsen closed 2 years ago

michielgerritsen commented 5 years ago

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.

ameenross commented 5 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.

ameenross commented 5 years ago

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);