php-ups-api icon indicating copy to clipboard operation
php-ups-api copied to clipboard

Anyone to implement the pickup API?

Open LuWey opened this issue 4 years ago • 12 comments

Would someone be willing to implement the missing pickup API? Maybe on a donation based payed work?

LuWey avatar Nov 24 '20 11:11 LuWey

@LuWey thank you for your proposition. I will investigate if it is possible with the code v1 and I will come back to you.

ptondereau avatar Nov 25 '20 08:11 ptondereau

Great, thank you! Very much appreciated!

LuWey avatar Nov 25 '20 11:11 LuWey

@ptondereau Hello Pierre, did you already come to a conclusion? Even a preliminary dirty hack would do. I need to get this done... Many thanks!

LuWey avatar Nov 30 '20 11:11 LuWey

@LuWey didn't get enough room last week. I'll try tomorrow

ptondereau avatar Nov 30 '20 11:11 ptondereau

@LuWey AFAIK, I can implement quickly PickupRateRequest but I don't know what do you want.

There are 4 actions possible for now:

  • PickupRateRequest
  • PickuCreationRequest
  • PickupCancelReqquest
  • PickupStatusRequest

What is your priority?

ptondereau avatar Dec 02 '20 16:12 ptondereau

Clearly, this is the Creation request! Thank you very much!

LuWey avatar Dec 02 '20 16:12 LuWey

Unfortunately UPS Pickup Service not available on XML API. Restful API is the way for future. I had created PickupRate API but all in vain.

SSManak avatar Dec 22 '20 17:12 SSManak

Unfortunately UPS Pickup Service not available on XML API. Restful API is the way for future. I had created PickupRate API but all in vain.

Are you sure? XML Documentation and endpoint are still available.

ptondereau avatar Dec 23 '20 00:12 ptondereau

As per latest documentation only SOAP Webservice and Restful API are available. I can't connect to XML API, tried and got following error: (So, it seems Endpoint is also not available) Failure: Client error: POST https://wwwcie.ups.com/ups.app/xml/Pickup resulted in a 404 Not Found response:

SSManak avatar Dec 23 '20 09:12 SSManak

@ptondereau Hello Pierre, would you mind giving me an update on where you are on this? Many thanks!

LuWey avatar Jan 11 '21 20:01 LuWey

@LuWey sorry for the long delay but as @SSManak reported it, Pickup seems unavailable though XLM Api. Switching to json one represent a lot of work and I don't have any room to handle it

ptondereau avatar Jan 12 '21 08:01 ptondereau

@LuWey I have implemented a way to use the Pickup API alongside other XML based APIs. Haven't managed to write some tests yet. You can check it out here: https://github.com/danielcrt/php-ups-api As @ptondereau mentioned it implied multiple edits to the roots of the existing code so I'm not sure if I have to make a pull request for it.

danielcrt avatar Feb 17 '21 16:02 danielcrt