Closed1

jq memo

otokunaga2otokunaga2

データをjqで加工して変数として設定

export AUTH_TOKEN=$(curl --request POST \
  --url https://{my-domain}.auth0.com/oauth/token \
  --header 'content-type: application/json' \
  --data '{"client_id":"1UdSWo3DIOLgg15hW43gaewzGuEntL2W","client_secret":"XXXX","audience":"https://api.example.com/v1","grant_type":"client_credentials"}' | jq -r .access_token 
このスクラップは2022/02/14にクローズされました