Webhook
Webhook adalah HTTP callback yang dikirim secara otomatis oleh suatu sistem ke URL tertentu ketika ada event terjadi. Digunakan untuk real-time notification, integrasi sistem, dan otomatisasi.
// Contoh handle webhook di PHP
$payload = json_decode(file_get_contents('php://input'), true);
$event = $_SERVER['HTTP_X_GITHUB_EVENT'] ?? '';
if ($event === 'push') {
// Pull latest code
exec('git pull origin main');
}
Istilah Terkait
Kembali ke Glosarium Pemrograman
