Jump to content

Post to WebHook from alfred input


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...