Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Code snippet on how to update a webhook using the MessageMedia Webhooks Node.js SDK.
function updateWebhook(){
var webhookId = "WEBHOOK_ID";
var body = new lib.UpdateWebhookRequest({
"url": "",
"method": "GET",
"encoding": "FORM_ENCODED",
"events": [
"template": "<id>$mtId</id>, <time_sent>$submittedTimestamp</time_sent>, <time_received>$receivedTimestamp</time_received>, <account_id>$accountId</account_id>, <service_type>$type</service_type>"
controller.updateWebhook(webhookId, body, function(error, response, context) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.