the page itself/p> "Ошибка запроса: $httpCode", "data" => [] ]; } } // Получение данных $trackingData = getContainerTracking(); ?>

Date/th> Location/th> Operation/th> Transport/th>

There is no data to display./p>

Search for FESCO containers/h3>
{source}!--?php function getContainerTracking($containerNumber) { $url = "https://api.fesco.com/api/v1/lk/tracking/fit/container?containerNumber=" . urlencode($containerNumber); $apiKey = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZXNzaW9uX2lkIjoicWpBOFlyVHk1S1ciLCJleHBpcmVkIjoiMjAyNi0wMS0xMyAwNTowODoxOCIsImlzX3B1Y19hcGkiOnRydWUsImlhdCI6MTczNjczNDA5OH0.-dtl9D2n2ofYDSyqb5m2XlrxoAUOqQN8awwDCh92do4"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer $apiKey", "Content-Type: application/json" ]); $response = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if ($httpCode === 200) { return json_decode($response, true); } else { return [ "error" =--> "Ошибка запроса: $httpCode", "response" => $response ]; }}if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST['containerNumber'])) { $containerNumber = trim($_POST['containerNumber']); $result = getContainerTracking($containerNumber); echo "pre>""; print_r ($result); / / We output the echo result "/pre>"";}?>{/source}form method="post">