parent
0e21cf23e6
commit
8578ec6bf3
3
post.sh
3
post.sh
|
@ -35,8 +35,7 @@ wget "${source_url}" 2> /dev/null || (echo "Error with ${source_url}" && exit 1)
|
|||
|
||||
media_json=$(curl -X POST "${api_base_url}/api/v1/media" \
|
||||
-H "Authorization: Bearer ${access_token}" \
|
||||
-F "file=@`ls *`" \
|
||||
-F "description=${source_url}")
|
||||
-F "file=@`ls *`")
|
||||
|
||||
media_id=$(jq -r ".id" <<< ${media_json})
|
||||
|
||||
|
|
Loading…
Reference in New Issue