This project includes:
- A library for RESTful MyDHL API operations
- A test application for all MyDHL API operations
This project will include (at a later date):
- A library for SOAP MyDHL API operations (work in progress)
Please note that this is all a work in progress. This message will be removed when all components reach v1.0 state
- Rate Query
- Shipment Generation
- Pickup Request
- Cancel/Delete Pickup
- Tracking
- ePOD Retrieve
- Update Shipment
--none--
- Rate Query
- Shipment Generation
- Update Shipment
- Pickup Request
- Cancel/Delete Pickup
- Tracking
- ePOD Retrieve
To use the test app, you must create a credentials.txt
and ensure that it is included while building. This file should contain your username on line 1
and your password on line 2
. Do not include this in source control if you intent to publish to the Internet.
You also have the option to use the defaults.json
file to set default values which all forms in the test app will use to pre-populate the form (saving your time). Do not include this in source control if you intend to publish to the Internet.
A defaults-example.json
file is included for your reference.
Instantiate the MyDHLAPI object
MyDHLAPI myDHLAPI = new MyDHLAPI(username, password, baseURL);
Call the appropriate method (tracking as an example)
resp = myDHLAPI.KnownAWBTracking(new List<string>() { "1234567891" }
, Enums.LevelOfDetails.AllCheckpoints
, Enums.PiecesEnabled.Both
, Enums.EstimatedDeliveryDateEnabled.Yes);