dhl-api
v0.6.2
Published
The RIPE DHL API client
Downloads
56
Readme
DHL API for Javascript
The DHL API Javascript client implementation.
const dhlAPI = require("dhl-api");
// instance the API client with defaults
const dhl = new dhlApi.API({
username: "mydhlaccount",
password: "mydhlaccountpassword",
});
// example: request tracking information
const tracking = await api.getTracking("7798339175");
Configuration
| Name | Type | Default | Description |
| ---------------- | ----- | --------------------------------------- | -------------------------------------------------------------- |
| DHL_BASE_URL | str
| https://express.api.dhl.com/mydhlapi/
| The base URL that is going to be used for DHL API connections. |
| DHL_USERNAME | str
| None
| The DHL API username to be used for authentication |
| DHL_PASSWORD | str
| None
| The DHL API password to be used for authentication |
License
DHL API for Javascript is currently licensed under the Apache License, Version 2.0.