how to retrieve query parameter values
khfyf opened this issue · 3 comments
khfyf commented
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
ncarlier commented
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
khfyf commented
this works.. thanks guys
May goodness always be with you
My greetings from Indonesia..
ncarlier commented
Glad it worked out. Greetings from France :)