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