Brobin / usps-api

Python Wrapper for the USPS API :truck: :package:
MIT License
58 stars 27 forks source link

Pulling "Optional" Reponses from the API (Tracking) #12

Closed sethdthomas closed 3 years ago

sethdthomas commented 3 years ago

How can I pull the "Optional" responses that the Tracking API offers (as noted in this guide https://www.usps.com/business/web-tools-apis/track-and-confirm-api.pdf)?

The ones I'm specifically looking at are the: TrackResponse / TrackInfo / ExpectedDeliveryDate

and the

TrackResponse / TrackInfo / ExpectedDeliveryTime

sethdthomas commented 3 years ago

For those that have a similar question - I'm not sure how to modify this package to request that - but this StackOverflow post is what ultimately helped me achieve pulling the expected delivery date: https://stackoverflow.com/questions/23902091/usps-tracking-api-expected-delivery-date

Good luck! - I think a simple modification where the user inputs the:

1 #.#.#.# ##########

XML Tags, this package could support the expected delivery date (and other fields). It would be great to have this package pull all the information possible, then be able to sort/manipulate it later.