The webhook instance to send a message to a connector url
try { const url = "https://[account-name].webhook.office.com" const data = new SimpleTextCard("Hello world!"); const webhook = new Webhook(url, data); const response = await webhook.sendMessage(); console.log(response);} catch (error) { console.log(error)} Copy
try { const url = "https://[account-name].webhook.office.com" const data = new SimpleTextCard("Hello world!"); const webhook = new Webhook(url, data); const response = await webhook.sendMessage(); console.log(response);} catch (error) { console.log(error)}
The urls of the webhook
The payload to send to the webhook
Private
A promise that resolves to the result of the webhook call
Generated using TypeDoc
Description
The webhook instance to send a message to a connector url
Example