Add support for webhook-based notifications #1181
|
@ -26,6 +26,7 @@ type WebhookNotification struct {
|
||||||
// SendWebhook sends the notification to the configured endpoint
|
// SendWebhook sends the notification to the configured endpoint
|
||||||
func SendWebhook(w *WebhookNotification) error {
|
func SendWebhook(w *WebhookNotification) error {
|
||||||
_, err := DoPost(w.endpointUrl, w.body, w.headers)
|
_, err := DoPost(w.endpointUrl, w.body, w.headers)
|
||||||
|
|||||||
|
// TODO: Have response-code basis exponential retries
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user
Please use
X-Vikunja-Signature
(capitalized)