From 8ed8cd1f8401738d696069f038f21e138fa19e20 Mon Sep 17 00:00:00 2001 From: jiriks74 Date: Tue, 14 Jan 2025 22:56:39 +0100 Subject: [PATCH] feat(nextcloud): Use v2 notification API --- config-example.json | 1 - main.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/config-example.json b/config-example.json index bf773e5..ea011b9 100644 --- a/config-example.json +++ b/config-example.json @@ -4,7 +4,6 @@ "ntfy_token": "default_token", "nextcloud_base_url": "https://nextcloud.example.com", - "nextcloud_notification_path": "/ocs/v2.php/apps/notifications/api/v1/notifications", "nextcloud_username": "user", "nextcloud_password": "application_password", diff --git a/main.py b/main.py index d6ce21b..e99d590 100644 --- a/main.py +++ b/main.py @@ -97,7 +97,7 @@ def load_config(config_file: str) -> dict: "ntfy_token": "default_token", "nextcloud_base_url": "https://nextcloud.example.com", - "nextcloud_notification_path": "/ocs/v2.php/apps/notifications/api/v1/notifications", + "nextcloud_notification_path": "/ocs/v2.php/apps/notifications/api/v2/notifications", "nextcloud_username": "user", "nextcloud_password": "application_password",