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

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...