ncarlier/webhookd

how to retrieve query parameter values

khfyf opened this issue · 3 comments

hi... I really thank you in advance... the tool you created... really helped me

I have a webhook like this

https://my-domain.com/webhook?hub.mode=subscribe&hub.verify_token=KHFY&hub.challenge=9012

how do i retrieve the value from the 'hub.challenge' parameter

when I try to retrieve it with a bash script

echo "${hub.challenge}"

i am not getting any marks.. please help me

Hi, bash does not allow special characters in names, but other runtimes does.

Exemple with perl:

hub_challenge=`perl -E 'say $ENV{"hub.challenge"}'`
echo $hub_challenge

this works.. thanks guys

May goodness always be with you

My greetings from Indonesia..

Glad it worked out. Greetings from France :)