Endurain/auto-upload/upload.sh hinzugefügt
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user