caronc / apprise-api

A lightweight REST framework that wraps the Apprise Notification Library
https://hub.docker.com/r/caronc/apprise
MIT License
638 stars 56 forks source link

Added webhook support for sending Notification results #139

Closed caronc closed 11 months ago

caronc commented 12 months ago

Description:

Related issue (if applicable): refs #101

Note: This change will not work until Apprise v1.6.0 is released as it includes changes to help assist with this enhancement.

Define the APPRISE_WEBHOOK_URL to be the full URL you wish to notify after each call to the Apprise API is made.

Your URL can contain the following parameters to allow you to configure some internal switches.

The following are example URLs:

Payload

The payload sent to the webhook end point looks like:

{
   "source": "<remote user ip address>",
   "status": 0,
   "output": "log output",
 }

The status is 0 on success and 1 if a failure.

Checklist

codecov-commenter commented 11 months ago

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Files Coverage Δ
apprise_api/api/views.py 100.00% <100.00%> (+0.57%) :arrow_up:
apprise_api/api/utils.py 86.36% <83.33%> (+18.63%) :arrow_up:

... and 10 files with indirect coverage changes

:loudspeaker: Thoughts on this report? Let us know!.