Updated Notify_msteams (markdown)

master
Chris Caron 2023-02-17 15:49:21 -05:00
parent 0694d93797
commit 544e81bc9a
1 changed files with 3 additions and 3 deletions

@ -113,15 +113,15 @@ In the above example, we introduce several tokens... `app_id`, `app_title`, `tar
* **app_url**: The URL associated with the Apprise instance (found in the **AppriseAsset()** object). Unless this has been over-ridden by a developer, it's value will be `https://github.com/caronc/apprise`.
Anything you invent outside of that is yours. So lets get back to the `target` and `whence` that was define. Template tokens can be dynamically set by using the colon `:` operator before any URL argument you identify. For example we can set these values on our Apprise URL like so:
* `msteams://credentials/?template=/path/to/template.json&:target=Chris&whence=this%20afternoon`
* `msteams://credentials/?template=http://host/to/template.json&:target=Chris&whence=this%20afternoon`
* `msteams://credentials/?template=/path/to/template.json&:target=Chris&:whence=this%20afternoon`
* `msteams://credentials/?template=http://host/to/template.json&:target=Chris&:whence=this%20afternoon`
A notification like so:
```bash
# using colons, we can set our target and whence dynamically from the
# command line:
apprise -t "My Title" -b "This is Ignored" \
"msteams://credentials/?template=http://host/to/template.json&:target=Chris&whence=this%20afternoon"
"msteams://credentials/?template=http://host/to/template.json&:target=Chris&:whence=this%20afternoon"
```
Would post to MSTeams (with respect to our template above):
```json