From c7a478e3e977d017f4001de29585237d05e23bc2 Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Fri, 15 Feb 2019 16:54:15 -0500 Subject: [PATCH] Updated Notify_Custom_JSON (markdown) --- Notify_Custom_JSON.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/Notify_Custom_JSON.md b/Notify_Custom_JSON.md index e3aec37..d325304 100644 --- a/Notify_Custom_JSON.md +++ b/Notify_Custom_JSON.md @@ -10,7 +10,7 @@ The format might look something like this: ```json { "version": "1.0", - "title": "What A Great Movie Downloaded Successfully", + "title": "Some Great Software Downloaded Successfully", "message": "Plenty of details here", "type": "info" } @@ -40,4 +40,24 @@ Send a JSON notification to our web server listening on port 80: ```bash # Assuming our {hostname} is json.server.local apprise json://json.server.local +``` + +### Header Manipulation +Some users may require special HTML headers to be present when they post their data to their server. This can be accomplished by just sticking a hyphen (**-**) in front of any parameter you specify on your URL string. +```bash +# Below would set the header: +# X-Token: abcdefg +# +# Assuming our {hostname} is localhost +# Assuming our {port} is 8080 +apprise "json://localhost:8080/path/?-X-Token=abcdefg" + +# Multiple headers just require more entries defined with a hyphen in front: +# Below would set the headers: +# X-Token: abcdefg +# X-Apprise: is great +# +# Assuming our {hostname} is localhost +# Assuming our {port} is 8080 +apprise "json://localhost:8080/path/?-X-Token=abcdefg&-X-Apprise=is%20great" ``` \ No newline at end of file