From 486cba9865890ab6543da055081a56a8c0ba3d70 Mon Sep 17 00:00:00 2001 From: Kevin Alberts Date: Tue, 15 Jul 2025 14:03:20 +0200 Subject: [PATCH] Fix API paths and param names --- multiplexer.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/multiplexer.py b/multiplexer.py index 0e84dce..4611080 100644 --- a/multiplexer.py +++ b/multiplexer.py @@ -29,11 +29,10 @@ def ingest_request(): raise ValueError("Reitti API URL or Key is not configured!") response1 = requests.post( - REITTI_BASE_URL, - 'http://service1.com/api', + f"{REITTI_BASE_URL}/api/v1/ingest/owntracks", json=data, headers=request.headers, - params={'api_key': REITTI_API_KEY} + params={'token': REITTI_API_KEY} ) except Exception as e: @@ -45,7 +44,7 @@ def ingest_request(): raise ValueError("Dawarich API URL or Key is not configured!") response2 = requests.post( - DAWARICH_BASE_URL, + f"{DAWARICH_BASE_URL}/api/v1/owntracks/points", json=data, headers=request.headers, params={'api_key': DAWARICH_API_KEY}