12 lines
238 B
Bash
12 lines
238 B
Bash
#!/usr/bin/env bash
|
|
|
|
source ~/cycling/app/.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" |