-
-
Notifications
You must be signed in to change notification settings - Fork 434
Notify_apprise_api
- Source: n/a
- Icon Support: No
- Attachment Support: yes
- Message Limit: 32768 Characters per message
The idea is to allow users to use Apprise and hit an existing Apprise API server.
Note: this is a wee bit redundant because you can already use the CLI and point it's configuration to an existing Apprise API server (using the --config
on the CLI or AppriseConfig()
class via it's own internal API). The idea is to allow people who already use 3rd party websites that don't support the --config
option to still be able to point back to their own self hosted Apprise API server if they wish to.
The syntax is as follows:
apprise://{host}/{token}
apprise://{host}:{port}/{token}
apprise://{user}@{host}:{port}/{token}
apprise://{user}:{password}@{host}:{port}/{token}
For a secure connection, just use apprises
instead.
apprises://{host}:{port}/{token}
apprises://{host}:{port}/{token}
apprises://{user}@{host}:{port}/{token}
apprises://{user}:{password}@{host}:{port}/{token}
Variable | Required | Description |
---|---|---|
hostname | Yes | The Web Server's hostname |
port | No | The port our Web server is listening on. By default the port is 80 for apprise:// and 443 for all apprises:// references. |
user | No | If you're system is set up to use HTTP-AUTH, you can provide username for authentication to it. |
password | No | If you're system is set up to use HTTP-AUTH, you can provide password for authentication to it. |
tags | No | You can optional set the tags you want to supply with your call to the Apprise API server |
Send a notification along to an Apprise API server listening on port 80:
# Assuming our {hostname} is apprise.server.local
# Assuming our {token} is token
apprise apprise://apprise.server.local/token
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.
# Below would set the header:
# X-Token: abcdefg
#
# Assuming our {hostname} is localhost
# Assuming our {port} is 8080
# Assuming our {token} is apprise
apprise -vv -t "Test Message Title" -b "Test Message Body" \
"apprise://localhost:8080/apprise/?+X-Token=abcdefg"
# Multiple headers just require more entries defined:
# Below would set the headers:
# X-Token: abcdefg
# X-Apprise: is great
#
# Assuming our {hostname} is localhost
# Assuming our {port} is 8080
# Assuming our {token} is apprise
# In this example we allow for a custom URL path to be defined
# in the event we're hosting our Apprise API here instead
apprise -vv -t "Test Message Title" -b "Test Message Body" \
"apprise://localhost:8080/path/apprise/?+X-Token=abcdefg&+X-Apprise=is%20great"