From b077e103c9d7375af7dd650af22cbb0c866ba45b Mon Sep 17 00:00:00 2001 From: sanj <67624670+iodrift@users.noreply.github.com> Date: Tue, 25 Jun 2024 19:31:40 -0700 Subject: [PATCH] Auto-update: Tue Jun 25 19:31:40 PDT 2024 --- Extras/Pythonista/uploadGPS.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Extras/Pythonista/uploadGPS.py b/Extras/Pythonista/uploadGPS.py index b293458..13e6154 100644 --- a/Extras/Pythonista/uploadGPS.py +++ b/Extras/Pythonista/uploadGPS.py @@ -3,11 +3,12 @@ import os import json filename = 'location_log.json' -server = 'https://api.sij.ai' +server = '!{!{ ENTER A PUBLIC URL TO YOUR SIJAPI INSTANCE }!}!' +api_key = !{!{ ENTER YOUR GLOBAL_API_KEY HERE }!}! def upload_location_data(data): headers = { - 'Authorization': 'Bearer sk-NhrtQwCHNdK5sRZC', + 'Authorization': f'Bearer {api_key}', 'Content-Type': 'application/json' }