snippet

$_POST[“name”],
“cognome” => $_POST[“surname”]
];
$json_data = json_encode($data);
$webhook_url = ‘https://automation.atlassian.com/pro/hooks/ccde23655997a193d7ff6a84a475abd49e5bbb13’;
$ch = curl_init($webhook_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $json_data);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(‘Content-Type:application/json’));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);
}
?>