executable_tranfser-curl 315 B

123456789101112
  1. #!/usr/bin/env bash
  2. set -eux
  3. account="$1"
  4. host="$2"
  5. curl --request POST https://api.majordomo.ru/account/"$account"/transfer \
  6. --header "Authorization: Bearer $(mjru-auth)" \
  7. --header 'Content-Type: application/json' \
  8. --data-binary '{"operationIdentity":null,"params":{"serverId":"'"$host"'" }}'