Updated Notify_apprise_api (markdown)

master
Chris Caron 2023-09-17 15:35:38 -04:00
parent 2171ba4651
commit be232b6b23
1 changed files with 36 additions and 2 deletions

@ -35,7 +35,40 @@ Send a notification along to an Apprise API server listening on port 80:
```bash ```bash
# Assuming our {hostname} is apprise.server.local # Assuming our {hostname} is apprise.server.local
# Assuming our {token} is token # Assuming our {token} is token
apprise apprise://apprise.server.local/token apprise -vv --body="Test Message" \
"apprise://apprise.server.local/token"
```
Here is another example where you can call your Apprise server based on Tags provided:
```bash
# Assuming our {hostname} is apprise.server.local
# Assuming our {token} is token
# Assuming we want to trigger any Notification associated with the {tag} email
apprise -vv --body="Test Message" \
"apprise://apprise.server.local/token?tags=email"
```
You can also leverage the Logic of AND and OR when passing Tags:
```bash
#
# OR Example
#
# Assuming our {hostname} is apprise.server.local
# Assuming our {token} is token
# Assuming we want to trigger any Notification associated with notifications
# that have either (OR) devops and finance
apprise -vv --body="Test Message" \
"apprise://apprise.server.local/token?tags=devops,finance"
#
# AND Example
#
# Assuming our {hostname} is apprise.server.local
# Assuming our {token} is token
# Assuming we want to trigger any Notification associated with notifications
# that have all of the following tags associated with them:
apprise -vv --body="Test Message" \
"apprise://apprise.server.local/token?tags=devops alerts"
``` ```
### Header Manipulation ### Header Manipulation
@ -72,4 +105,5 @@ apprise -vv -t "Test Message Title" -b "Test Message Body" \
# Assuming our {port} is 8080 # Assuming our {port} is 8080
# Assuming our {token} is apprise # Assuming our {token} is apprise
apprise --body="test message" --config=http://localhost:8080/get/apprise apprise --body="test message" --config=http://localhost:8080/get/apprise
``` ```