Create a new TeamsKlaxon instance with your Teams Workflow webhook URL.
Note: This library uses the attachments format which works with most Teams Workflows.
A Teams Workflow webhook URL
const klaxon = new TeamsKlaxon('https://prod.workflows.office.com/webhook/...'); Copy
const klaxon = new TeamsKlaxon('https://prod.workflows.office.com/webhook/...');
Make an adaptive card.
Card contents
klaxon.makeCard([ Elements.TextBlock('Hello _world_!'),]); Copy
klaxon.makeCard([ Elements.TextBlock('Hello _world_!'),]);
Verify a card is valid.
klaxon.makeCard([ Elements.TextBlock('Hello _world_!'),]);klaxon.cardIsValid();// true Copy
klaxon.makeCard([ Elements.TextBlock('Hello _world_!'),]);klaxon.cardIsValid();// true
Post your card to Teams.
klaxon.makeCard([ Elements.TextBlock('Hello _world_!'),]);const response = await klaxon.postCard();response.status// 202 Copy
klaxon.makeCard([ Elements.TextBlock('Hello _world_!'),]);const response = await klaxon.postCard();response.status// 202
Create a new TeamsKlaxon instance with your Teams Workflow webhook URL.
Note: This library uses the attachments format which works with most Teams Workflows.