Normally Palatable Mango

    dhl-api

    0.6.2 • Public • Published

    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.

    Build Automation

    Build Status Build Status GitHub npm Status License

    Install

    npm i dhl-api

    DownloadsWeekly Downloads

    2

    Version

    0.6.2

    License

    Apache-2.0

    Unpacked Size

    634 kB

    Total Files

    17

    Last publish

    Collaborators

    • platforme