Parcel.NET.Dhl
1.0.1
dotnet add package Parcel.NET.Dhl --version 1.0.1
NuGet\Install-Package Parcel.NET.Dhl -Version 1.0.1
<PackageReference Include="Parcel.NET.Dhl" Version="1.0.1" />
<PackageVersion Include="Parcel.NET.Dhl" Version="1.0.1" />
<PackageReference Include="Parcel.NET.Dhl" />
paket add Parcel.NET.Dhl --version 1.0.1
#r "nuget: Parcel.NET.Dhl, 1.0.1"
#:package Parcel.NET.Dhl@1.0.1
#addin nuget:?package=Parcel.NET.Dhl&version=1.0.1
#tool nuget:?package=Parcel.NET.Dhl&version=1.0.1
<p align="center"> <img src="https://raw.githubusercontent.com/emuuu/Parcel.NET/main/parcelNET-logo.svg" alt="Parcel.NET" width="128" /> </p>
Parcel.NET.Dhl
Core DHL package for Parcel.NET — provides DhlOptions configuration, OAuth token management, and the fluent DhlBuilder used to register individual DHL service clients.
Installation
dotnet add package Parcel.NET.Dhl
Usage
builder.Services.AddDhl(options =>
{
options.ApiKey = "your-api-key";
options.ApiSecret = "your-api-secret";
options.Username = "your-username";
options.Password = "your-password";
options.UseSandbox = true;
})
.AddDhlShipping() // requires Parcel.NET.Dhl.Shipping
.AddDhlTracking() // requires Parcel.NET.Dhl.Tracking
.AddDhlUnifiedTracking()
.AddDhlPickup()
.AddDhlReturns()
.AddDhlInternetmarke()
.AddDhlLocationFinder();
AddDhl() returns a DhlBuilder that the individual service packages chain onto. Authentication (OAuth ROPC or API-key header) is handled automatically per service.
Configuration
| Property | Required | Description |
|---|---|---|
ApiKey |
Yes | DHL API key (also used as OAuth client_id) |
ApiSecret |
For Shipping/Pickup/Returns/Internetmarke | OAuth client_secret |
Username / Password |
For Shipping/Pickup/Returns | ROPC credentials |
TrackingUsername / TrackingPassword |
For Tracking (XML) | Parcel DE Tracking credentials |
InternetmarkeUsername / InternetmarkePassword |
For Internetmarke | Falls back to Username/Password |
UseSandbox |
No | Use sandbox endpoints |
Links
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.Http (>= 10.0.3)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.3)
- Parcel.NET.Abstractions (>= 1.0.1)
-
net8.0
- Microsoft.Extensions.Http (>= 10.0.3)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.3)
- Parcel.NET.Abstractions (>= 1.0.1)
-
net9.0
- Microsoft.Extensions.Http (>= 10.0.3)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.3)
- Parcel.NET.Abstractions (>= 1.0.1)
NuGet packages (8)
Showing the top 5 NuGet packages that depend on Parcel.NET.Dhl:
| Package | Downloads |
|---|---|
|
Parcel.NET.Dhl.Pickup
DHL Parcel DE Pickup API v3 client for Parcel.NET. |
|
|
Parcel.NET.Dhl.Tracking
DHL Parcel DE Tracking API v0 client (XML) for Parcel.NET. |
|
|
Parcel.NET.Dhl.Shipping
DHL Parcel DE Shipping API v2 client for Parcel.NET. |
|
|
Parcel.NET.Dhl.Internetmarke
DHL Post DE Internetmarke API v1 client for Parcel.NET. |
|
|
Parcel.NET.Dhl.Returns
DHL Parcel DE Returns API v1 client for Parcel.NET. |
GitHub repositories
This package is not used by any popular GitHub repositories.