Establishing connection

Since communication with DHL24 API uses the SOAP protocol, integration with the service is relatively simple. Below you can find an example of running the getVersion method in PHP language.


 class DHL24_webapi_client extends SoapClient { const WSDL = 'https://dhl24.com.pl/webapi2'; public function __construct() { parent::__construct( self::WSDL ); } } $client = new DHL24_webapi_client; $result = $client->getVersion(); echo $result;

Obtaining a key

To be able to realise the full potential of working with web API, you need to obtain a special key which is required to run every method (except getVersion precisely) of the service. In order to receive such key, please send us a message via our contact form (with category “WebAPI - obtaining access”).

Go back to topic list