Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Commit 7002ea6

Browse files
committed
Updated the text.php (example file)
Removed @ from readme before deprecated
1 parent b8ed779 commit 7002ea6

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ require_once(__DIR__ . '/includes/_nonComposerLoader.php');
3333

3434
This Project is written for the DHL-SOAP-API **Version 2 or higher**.
3535

36-
Version 1 Methods are marked as @deprecated and will removed soon. Please upgrade to the API-Version 2 as soon as possible.
36+
Version 1 Methods are marked as deprecated and will removed soon. Please upgrade to the API-Version 2 as soon as possible.
3737

3838
## Usage / Getting started
3939

test.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
// Set Shipment Details
3232
$shipmentDetails = new ShipmentDetails($credentials->getEkp(10) . '0101'); // Create a Shipment-Details with the first 10 digits of your EKP-Number and 0101 (?)
3333
$shipmentDetails->setShipmentDate('2017-01-30'); // Optional: Need to be in the future and NOT on a sunday | null or drop it, to use today
34+
$shipmentDetails->setNotificationEmail('peter-91@hotmail.de'); // Needed if you want inform the receiver via mail
3435
//$shipmentDetails->setReturnAccountNumber($credentials->getEkp(10) . '0701'); // Needed if you want to print a return label
3536
//$shipmentDetails->setReturnReference($reference); // Only needed if you want to print a return label
3637

3738
// Set Sender
3839
$sender = new Sender();
3940
$sender->setName('Peter Muster');
40-
/*$sender->setFullStreet('Test Straße 12a'); // Do not use this anymore!*/
4141
$sender->setStreetName('Test Straße');
4242
$sender->setStreetNumber('12a');
4343
$sender->setZip('21037');
@@ -48,7 +48,6 @@
4848
// Set Receiver
4949
$receiver = new Receiver();
5050
$receiver->setName('Test Empfänger');
51-
/*$receiver->setFullStreet('Test Straße 23b'); // Do not use this anymore!*/
5251
$receiver->setStreetName('Test Straße');
5352
$receiver->setStreetNumber('23b');
5453
$receiver->setZip('21037');
@@ -65,6 +64,7 @@
6564

6665
// Required just Credentials also accept Test-Modus and Version
6766
$dhl = new BusinessShipment($credentials, /*Optional*/$testModus, /*Optional*/$version);
67+
6868
// You can add your own API-File (if you want to use a remote one or your own) - else you don't need this
6969
//$dhl->setCustomAPIURL('http://myserver.com/myAPIFile.wsdl');
7070

@@ -75,7 +75,6 @@
7575
//$dhl->setReturnReceiver($returnReceiver); // Needed if you want print a return label
7676
$dhl->setService($service);
7777
$dhl->setShipmentDetails($shipmentDetails);
78-
//$dhl->setReceiverEmail('receiver@mail.com'); // Needed if you want inform the receiver via mail
7978
$dhl->setLabelResponseType(BusinessShipment::RESPONSE_TYPE_URL);
8079

8180
$response = $dhl->createShipment(); // Creates the request
@@ -93,6 +92,10 @@
9392
//$manifestDHL = new BusinessShipment($credentials, $testModus, $version);
9493
//$manifestResponse = $manifestDHL->doManifest('shipmentNumber');
9594

95+
// To do a Manifest-Request you can use the doManifest method - you have to provide a Shipment-Number
96+
//$getManifestDHL = new BusinessShipment($credentials, $testModus, $version);
97+
//$getManifestResponse = $getManifestDHL->getManifest('YYYY-MM-DD'); // Need to be in the past or today after doManifest()
98+
9699
// Get the result (just use var_dump to show all results)
97100
if($response !== false)
98101
var_dump($response);

0 commit comments

Comments
 (0)