Fix API paths and param names
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b984352d92
commit
486cba9865
1 changed files with 3 additions and 4 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue