try {
$webHookIdList = array();
foreach ($webHookList as $webHook) {
$webHookIdList[] = $webHook->getId();
$webHookClient->delete($webHook->getId());
}
} catch (Exception $ex) {
ResultPrinter::printError("Deleted All WebHooks", "", implode(';', $webHookIdList), null, $ex);
exit(1);
}
ResultPrinter::printResult("Delete All WebHook", "", implode(';', $webHookIdList), null, null);
return $createdWallet;
Delete All WebHooks
This is a sample helper method, to delete all existing webhooks. To properly use the sample, change the token from bootstrap.php file with your own app token.