mirror of https://github.com/caronc/apprise
Updated Notify_apprise_api (markdown)
parent
2171ba4651
commit
be232b6b23
|
@ -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
|
||||||
|
@ -73,3 +106,4 @@ apprise -vv -t "Test Message Title" -b "Test Message Body" \
|
||||||
# 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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue