From cb7512c2401d7ace4a12356fc8978075d0c6873a Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Tue, 8 Oct 2024 21:35:11 -0400 Subject: [PATCH] Updated Notify_workflows (markdown) --- Notify_workflows.md | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/Notify_workflows.md b/Notify_workflows.md index d92cf33..604409d 100644 --- a/Notify_workflows.md +++ b/Notify_workflows.md @@ -57,16 +57,22 @@ Define a `?template=` argument that points to a predefined JSON payload you wish The `template=` you point to, can either be fully populate and ready to go as is (up to the MSTeams chat server), or you can dynamically populate it on the fly each time you call Apprise. You do this by using the double curly brace `{{` and `}}` to surround a keyword that you invent; here is an example: ```json { - "@type": "MessageCard", - "@context": "https://schema.org/extensions", - "summary": "{{app_id}}", - "sections": [ - { - "activityImage": "{{app_image_url}}", - "activityTitle": "{{app_title}}", - "text": "Hello {{ target }}, how are you {{ whence }}?" - } - ] + "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", + "type": "AdaptiveCard", + "version": "1.5", + "body": [ + { + "type": "TextBlock", + "text": "{{app_title}}", + "weight": "Bolder", + "separator": true + }, + { + "type": "TextBlock", + "text": "{{app_body}}", + "wrap": true + } + ] } ```