From 5434621d5f0af365b3f0cd4f4b27a92d1ca3f2c1 Mon Sep 17 00:00:00 2001 From: andre <1+andre@noreply.192.168.100.5> Date: Sat, 23 May 2026 11:28:11 +0200 Subject: [PATCH] =?UTF-8?q?Endurain/auto-upload/upload.sh=20hinzugef=C3=BC?= =?UTF-8?q?gt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Endurain/auto-upload/upload.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Endurain/auto-upload/upload.sh diff --git a/Endurain/auto-upload/upload.sh b/Endurain/auto-upload/upload.sh new file mode 100644 index 0000000..bc24bbd --- /dev/null +++ b/Endurain/auto-upload/upload.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +source ~/cycling/.config + +ACCESS_TOKEN="$1" +FILE="$2" + +curl -s -X POST \ + "$SERVER/api/v1/activities/create/upload" \ + -H "Authorization: Bearer $ACCESS_TOKEN" \ + -H "X-Client-Type: mobile" \ + -F "file=@$FILE" \ No newline at end of file