$shipment = $tacker->track('CNAQV100168101);
$accessToken = $tracker->getAccessToken(); //You can save this for the next query
//... to do
try{
$tracker->setAccessToken($accessToken); //Set the access token; the tracker will not send requst for the access token
$shipment = $tacker->track('CNAQV100168101);
} catch (Slince\ShipmentTracking\DHLECommerce\Exception\InvalidAccessTokenException $exception) {
$accessToken = $tracker->getAccessToken(true); // If the access token is invalid, refresh it.
$shipment = $tacker->track('CNAQV100168101);
//... to do
} catch (Slince\ShipmentTracking\Exception\TrackException $exception) {
exit('Track error: ' . $exception->getMessage());
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.