diff --git a/Notify_apprise_api.md b/Notify_apprise_api.md index 00513ff..bcb03aa 100644 --- a/Notify_apprise_api.md +++ b/Notify_apprise_api.md @@ -35,7 +35,40 @@ Send a notification along to an Apprise API server listening on port 80: ```bash # Assuming our {hostname} is apprise.server.local # 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 @@ -72,4 +105,5 @@ apprise -vv -t "Test Message Title" -b "Test Message Body" \ # Assuming our {port} is 8080 # Assuming our {token} is apprise apprise --body="test message" --config=http://localhost:8080/get/apprise -``` \ No newline at end of file +``` +