From ad7868f61e8022bf7806fac43ffd9922ba6947be Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Thu, 13 Oct 2022 19:50:00 -0400 Subject: [PATCH] Updated Notify_Custom_JSON (markdown) --- Notify_Custom_JSON.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Notify_Custom_JSON.md b/Notify_Custom_JSON.md index fefd751..f6e34b9 100644 --- a/Notify_Custom_JSON.md +++ b/Notify_Custom_JSON.md @@ -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" -``` \ No newline at end of file +``` + +### 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" +```