Skip to content

Commit

Permalink
Merge pull request #68 from oicr-gsi/GBS-5270
Browse files Browse the repository at this point in the history
modified command due to api endpoint change
  • Loading branch information
rjovelin authored Sep 20, 2024
2 parents a4c1372 + 8312982 commit 6bf634b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion copy_to_transfer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,19 @@ api_key=`cat ~/transfer.api.key`
server="https://transfer.oicr.on.ca"

# Uploading the actual file and get attachment id for each file
attachment_id=`curl -X POST -H "Accept: application/json" --insecure --user "$api_key:x" -T "$file" https://transfer.oicr.on.ca/attachments/binary_upload?filename=${file} | jq .attachment.id`
#attachment_id=`curl -X POST -H "Accept: application/json" --insecure --user "$api_key:x" -T "$file" https://transfer.oicr.on.ca/attachments/binary_upload?filename=${file} | jq .attachment.id`
#echo $attachment_id


attachment_id=`curl -X POST -H "Accept: application/json" --insecure --user "$api_key:x" -T "$file" https://transfer.oicr.on.ca/message/attachments/binary_upload?filename=${file} | jq .attachment.id`
echo $attachment_id







# Send the message
#cat <<EOF | curl -s -X POST --insecure --user "$api_key:x" -H "Content-Type: application/json" -d @- $server/link
#{"link":
Expand Down

0 comments on commit 6bf634b

Please sign in to comment.