<?php
require_once __DIR__ . '/../config/config.php';
$id = $argv[1] ?? null;
if (!$id) { echo "Usage: php inspect_webhook.php <id>\n"; exit; }
$db = Database::getInstance();
$row = $db->fetch('SELECT request_body FROM webhook_logs WHERE id = ?', [$id]);
if (!$row) { echo "Log not found\n"; exit; }
$data = json_decode($row['request_body'], true);
print_r($data);
