$api_url = "https://api.digiflash.com/produk"; // Sesuaikan dengan endpoint Digiflash
$api_key = "API_KEY_ANDA"; // Ganti dengan API Key yang benar

$headers = array(
    "Authorization: Bearer $api_key",
    "Content-Type: application/json"
);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $api_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);

$data = json_decode($response, true);
print_r($data); // Lihat output API
