/home/desid573/public_html
Edit: /home/desid573/public_html/webhook.php (2330B)
";
$url = "https://api.fleeteng.com.au/v2/graph/role/webhooks/".$hook["id"]."?access_token=9olkJkrIcttN8Zlh1lgAch70KFC_nJiIpUiCeaBMswbs";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_POSTFIELDS, $json);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if($httpcode == 200) {
echo "deleted ".$hook["target"];
} else {
echo "could not delete ".$hook["target"];
}
curl_close($ch);
}
}*/
echo $response;