Updated Notify_Custom_JSON (markdown)

master
Chris Caron 2022-10-13 19:50:00 -04:00
parent 5947d09566
commit ad7868f61e
1 changed files with 19 additions and 1 deletions

@ -96,4 +96,22 @@ apprise -vv -t "Test Message Title" -b "Test Message Body" \
# Assuming our {port} is 8080
apprise -vv -t "Test Message Title" -b "Test Message Body" \
"json://localhost:8080/path/?+X-Token=abcdefg&+X-Apprise=is%20great"
```
```
### GET Parameter Manipulation
Some users may require GET parameters to be part of their POST. Any parameters you pass onto the Apprise command line are interpreted by Apprise itself as options/actions you wish to perform (such as changing `method=update`, or `cto=3`). To have Apprise ignore what was specified and past the content `as-is` upstream, you jsut need to prefix your entries with a minus (`-`) symbol.
```bash
# The below for example would post to http://localhost:8000?token=abcdefg
#
# The `-` symbol will get stripped off when the upstream post takes place
# Apprise knows not to do anything with the argument at all and pass it along as is.
apprise -vv -t "Test Message Title" -b "Test Message Body" \
"json://localhost:8080/?-token=abcdefg"
# If you want to pass more then one element, just chain them:
# The below would send a a POST to:
# https://example.ca/my/path?key1=value1&key2=value2
#
apprise -vv -t "Test Message Title" -b "Test Message Body" \
"jsons://example.ca/my/path?-key1=value1&-key2=value2"
```