update
This commit is contained in:
parent
d1de3b397d
commit
286c4cab05
5 changed files with 6 additions and 10 deletions
|
|
@ -42,10 +42,10 @@ function mixdrop_check_if_file_is_alive () {
|
|||
file_id=${file_id##*/}
|
||||
>&2 echo "File ID: $file_id"
|
||||
|
||||
>&2 echo "URL to call: https://api.mixdrop.co/fileinfo?email=$api_login&key=$api_key&ref[]=$file_id"
|
||||
# >&2 echo "URL to call: https://api.mixdrop.co/fileinfo?email=$api_login&key=$api_key&ref[]=$file_id"
|
||||
|
||||
response=$(curl -s -X GET "https://api.mixdrop.co/fileinfo?email=$api_login&key=$api_key&ref[]=$file_id" -H "Content-Type: multipart/form-data")
|
||||
>&2 echo "Response: $response"
|
||||
# >&2 echo "Response: $response"
|
||||
|
||||
is_alive=$(echo $response | jq ".success")
|
||||
# is_alive=$(echo $is_alive | jq ".[0]")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue