mirror of https://github.com/caronc/apprise
Updated Notify_Custom_JSON (markdown)
parent
6cf08b7fab
commit
2171ba4651
|
@ -76,6 +76,44 @@ The above would post a message such as:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can also clear entries from showing by setting their values to being empty:
|
||||||
|
```bash
|
||||||
|
# Clear version and type from the payload:
|
||||||
|
# Assuming our {hostname} is localhost
|
||||||
|
# Assuming we want to clear both version and type from the output:
|
||||||
|
apprise -vv -t "Test Message Title" -b "Test Message Body" \
|
||||||
|
"json://localhost/?:version&:type"
|
||||||
|
```
|
||||||
|
|
||||||
|
The above would post a message such as:
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"title": "Test Message Title",
|
||||||
|
"message": "Test Message Body"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Finally, you can re-map values such as having the message go into a `body` tag instead:
|
||||||
|
```bash
|
||||||
|
# Add to the payload delivered to the remote server as if it was part
|
||||||
|
# the prepared message Apprise would have otherwise put together
|
||||||
|
#
|
||||||
|
# Assuming our {hostname} is localhost
|
||||||
|
# Assuming we want to remap the message section to body:
|
||||||
|
apprise -vv -t "Test Message Title" -b "Test Message Body" \
|
||||||
|
"json://localhost/?:message=body"
|
||||||
|
```
|
||||||
|
|
||||||
|
The above would post a message such as:
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"version": "1.0",
|
||||||
|
"title": "Test Message Title",
|
||||||
|
"body": "Test Message Body",
|
||||||
|
"type": "info"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### 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 plus symbol (**+**) 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 plus symbol (**+**) in front of any parameter you specify on your URL string.
|
||||||
```bash
|
```bash
|
||||||
|
|
Loading…
Reference in New Issue