<?php
// نشوف من وين جاي الـ 403
$ch = curl_init('https://navexdelivery.ecotrack.dz/api/v1.1/parcels/');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HEADER         => true, // نشوف الهيدرات
    CURLOPT_POST           => true,
    CURLOPT_POSTFIELDS     => '{}',
    CURLOPT_HTTPHEADER     => [
        'Authorization: Token KYnjFT3jc5b29OOEFjZNmqOyblSgyDsRqjdWjfVYFnNIVcrMGWzs9yDTAb5Z',
        'Accept: application/json',
        'Content-Type: application/json',
    ],
    CURLOPT_TIMEOUT        => 10,
    CURLOPT_SSL_VERIFYPEER => false,
]);
$response  = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

echo "Code: $http_code<br><br>";
echo "<pre>" . htmlspecialchars($response) . "</pre>";
?>