Ramon Posted August 7, 2023 Share Posted August 7, 2023 I'm trying to make a post in a webhook using alfred's input as "data" for the webhook, can anyone help me? I even did the command but I can't get what I type in alfred. #!/bin/bash WEBHOOK_URL="WEBHOOKURL" JSON_DATA='{"chave": "valor"}' curl -X POST -H "Content-Type: application/json" -d "$JSON_DATA" "$WEBHOOK_URL" Link to comment
vitor Posted August 8, 2023 Share Posted August 8, 2023 Assuming default settings, you’d use ${1} but it’s impossible to say without seeing more of the workflow. If you need further guidance, please share it (transfer.sh is good temporary storage) and point out where exactly you want the substitution. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now