mirror of https://github.com/caronc/apprise
Updated Notify_msteams (markdown)
parent
0694d93797
commit
544e81bc9a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue