Last active
May 21, 2018 04:58
-
-
Save IbrahimTareq/27d7b030318c2dfe3f22890b65621e89 to your computer and use it in GitHub Desktop.
Code snippet on how to delete a webhook using the MessageMedia Webhooks Node.js SDK.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function deleteWebhook(){ | |
var controller = setup(); | |
// The id of the webhook that you would like to delete | |
var webhookId = "WEBHOOK_ID"; | |
// Call the function that deletes the webhook | |
controller.deleteWebhook(webhookId, function(error, response, context) { | |
console.log(response); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment