dhltrack/README.md

27 lines
610 B
Markdown
Raw Permalink Normal View History

2023-08-29 06:47:16 +00:00
# DHL Tracking API Python Client
2023-08-16 09:28:38 +00:00
2023-08-29 06:47:16 +00:00
This is a Python client for the [DHL Shipment Tracking Unified API](https://developer.dhl.com/api-reference/shipment-tracking).
2023-08-16 09:28:38 +00:00
2023-08-29 06:47:16 +00:00
It is not fully featured yet, but it is a good starting point. It requires you to have a DHL developer account and an API key.
2023-08-16 09:28:38 +00:00
## Installation
```bash
2023-08-29 06:47:16 +00:00
pip install dhltrack
2023-08-16 09:28:38 +00:00
```
## Usage
```python
2023-08-29 06:47:16 +00:00
from dhltrack import DHL
2023-08-16 09:28:38 +00:00
2023-08-29 06:47:16 +00:00
api = DHL("YOUR_API_KEY", "YOUR_API_SECRET")
2023-08-16 09:28:38 +00:00
# Realtime tracking
2023-08-29 06:47:16 +00:00
tracking = api.track("YOUR_SHIPMENT_NUMBER")
2023-08-16 09:28:38 +00:00
```
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.