alfallouji / DHL-API

This library provides a PHP client for the DHL XML Services. DHL XML Services is an online web services integration capability that provides DHL’s service availability, transit times, rates, shipment and courier pickup booking along with shipment tracking from over 140 countries around the world. Using DHL’s XML Services, customers can incorporate DHL shipping functionality into their websites, customer service applications or order processing systems.
191 stars 148 forks source link

how to track the order information? #12

Open Bill0826 opened 9 years ago

Bill0826 commented 9 years ago

hello alfallouji ! when i use the DHL-API,There is no corresponding method to track the order information ! Can you give an example? thank you !

rollingbox commented 7 years ago

// Test a tracking request using DHL XML API $request = new Tracking(); $request->SiteID = ""; $request->Password = ""; $request->MessageTime = gmdate('c'); $request->MessageReference = '1234567890123456789012345678901'; $request->LanguageCode = 'en'; $request->AWBNumber = "Your tracking number"; $request->LevelOfDetails = 'ALL_CHECK_POINTS'; $request->PiecesEnabled = 'S';

    $client = new WebserviceClient();
    $xml = $client->call($request);
    $result = new TrackingResponse();
    $response = $this->initXML($xml);

Here you go

Yugandharjaiswal commented 6 years ago

Class 'Tracking' not found

can you tell me alias name