https://github.com/rubnsbarbosa/dhl
Golang CLI Tracker Client for DHL Shipment Packages
https://github.com/rubnsbarbosa/dhl
cli dhl-api golang http-client shipment-tracking
Last synced: about 2 months ago
JSON representation
Golang CLI Tracker Client for DHL Shipment Packages
- Host: GitHub
- URL: https://github.com/rubnsbarbosa/dhl
- Owner: rubnsbarbosa
- License: mit
- Created: 2025-03-06T18:35:29.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-08T20:12:52.000Z (2 months ago)
- Last Synced: 2025-03-29T12:35:49.203Z (about 2 months ago)
- Topics: cli, dhl-api, golang, http-client, shipment-tracking
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DHL Tracker CLI
```bash
______________ _______
___ __ \__ / / /__ /
__ / / /_ /_/ /__ /
_ /_/ /_ __ / _ /___
/_____/ /_/ /_/ /_____/
~ DHL Tracker CLI 1.0 ~
```## Prerequisites
You must have an eligible **Tracking Code** for the shipment and an **API Key** subscription which is specified in the request header.
## Setup
DHL Tracker CLI requires an API key. To run it:
1. Obtain your API key from [Developer DHL](https://developer.dhl.com)
2. Set Environment Variable```bash
export API_KEY="YOUR_DHL_API_KEY"
```Replace `"YOUR_DHL_API_KEY"` with your API key value
## How to run
```bash
go build main.go tracking.go
./main -tracking RR000000001DE
```or with Docker
```bash
docker pull rubnsbarbosa/dhl
docker run -e API_KEY=YOUR_DHL_API_KEY dhl -tracking RR000000001DE
```## Reference
* Find more details about the docker image on [Docker Hub - rubnsbarbosa/dhl](https://hub.docker.com/r/rubnsbarbosa/dhl)
* Find the steps on how to obtain your API key from [Developer DHL Shipment Tracking Unified API](https://developer.dhl.com/api-reference/shipment-tracking)This repository is licensed under the [MIT License](https://github.com/rubnsbarbosa/dhl/blob/main/LICENSE)