deutschepost/sdk-api-prodws

Deutsche Post DHL Group Shipping Products API SDK

1.1.2 2023-05-10 08:36 UTC

This package is auto-updated.

Last update: 2024-04-10 10:26:19 UTC


README

The DPDHL Product Information API SDK package offers an interface to the following web services:

  • ProdWS 1.1

Requirements

System Requirements

  • PHP 7.2+ with SOAP extension

Package Requirements

  • psr/log: PSR-3 logger interfaces

Development Package Requirements

  • phpunit/phpunit: Testing framework

Installation

$ composer require deutschepost/sdk-api-prodws

Uninstallation

$ composer remove deutschepost/sdk-api-prodws

Testing

$ ./vendor/bin/phpunit -c test/phpunit.xml

Features

The DPDHL Product Information API SDK supports the following features:

  • Get Product Versions List

Get Product Versions List

Obtain the versioned lists of sales products and their components (basic products and additions).

Public API

The library's components suitable for consumption comprise

  • services:
    • service factory
    • product information service
  • data transfer objects:
    • product list

Usage

$logger = new \Psr\Log\NullLogger();
$serviceFactory = new \DeutschePost\Sdk\ProdWS\Service\ServiceFactory();
$service = $serviceFactory->createProductInformationService('user', 'password', $logger);
$productLists = $service->getProductLists('MANDANT_ID');