mirror of https://github.com/caronc/apprise
Updated Notify_Custom_JSON (markdown)
parent
c8d5148598
commit
7492607d92
|
@ -49,7 +49,7 @@ apprise json://json.server.local
|
||||||
```
|
```
|
||||||
|
|
||||||
### Header Manipulation
|
### Header Manipulation
|
||||||
Some users may require special HTTP 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.
|
Some users may require special HTTP 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
|
```bash
|
||||||
# Below would set the header:
|
# Below would set the header:
|
||||||
# X-Token: abcdefg
|
# X-Token: abcdefg
|
||||||
|
@ -57,7 +57,7 @@ Some users may require special HTTP headers to be present when they post their d
|
||||||
# Assuming our {hostname} is localhost
|
# Assuming our {hostname} is localhost
|
||||||
# Assuming our {port} is 8080
|
# Assuming our {port} is 8080
|
||||||
apprise -vv -t "Test Message Title" -b "Test Message Body" \
|
apprise -vv -t "Test Message Title" -b "Test Message Body" \
|
||||||
"json://localhost:8080/path/?-X-Token=abcdefg"
|
"json://localhost:8080/path/?+X-Token=abcdefg"
|
||||||
|
|
||||||
# Multiple headers just require more entries defined with a hyphen in front:
|
# Multiple headers just require more entries defined with a hyphen in front:
|
||||||
# Below would set the headers:
|
# Below would set the headers:
|
||||||
|
@ -67,5 +67,5 @@ apprise -vv -t "Test Message Title" -b "Test Message Body" \
|
||||||
# Assuming our {hostname} is localhost
|
# Assuming our {hostname} is localhost
|
||||||
# Assuming our {port} is 8080
|
# Assuming our {port} is 8080
|
||||||
apprise -vv -t "Test Message Title" -b "Test Message Body" \
|
apprise -vv -t "Test Message Title" -b "Test Message Body" \
|
||||||
"json://localhost:8080/path/?-X-Token=abcdefg&-X-Apprise=is%20great"
|
"json://localhost:8080/path/?+X-Token=abcdefg&+X-Apprise=is%20great"
|
||||||
```
|
```
|
Loading…
Reference in New Issue