Endurain/auto-upload/upload.sh hinzugefügt

This commit is contained in:
2026-05-23 11:28:11 +02:00
parent f579aba650
commit 5434621d5f
+12
View File
@@ -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"