forgie1/gls-soap-api

GLS SOAP API

v2.0.4 2022-12-21 08:37 UTC

This package is auto-updated.

Last update: 2024-04-21 11:21:35 UTC


README

APi name and Documentation:

GLS Online Api v.18.09.12.01

See PDF document in doc directory.

Usage

For Allowed endpoints see: \GlsSoapApi\GlsClient::ALLOWED_ENDPOINTS

$client = new \GlsSoapApi\GlsClient('endPoint', 'userName', 'password', 'senderId', 'testMode');

$requestData = new \GlsSoapApi\Requests\Entities\PrintLabelRequestData();
$requestData
    ->set ....;

$request = new \GlsSoapApi\Requests\PrintLabelRequest($requestData)

$response = $client->send($request);

Available Requests:

  • PrintLabelRequest
  • DeleteLabelsRequest
  • ModifyCodRequest

TestMode

If GlsClient() is created with $testMode = true credentials and country are ignored, request is made to test server and result is logged by &logger.

Logging:

Use GlsClient::setLogger().

Web client

http://online.gls-czech.com/index.php