Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to retrieve query parameter values #96

Closed
khfyf opened this issue Apr 1, 2024 · 3 comments
Closed

how to retrieve query parameter values #96

khfyf opened this issue Apr 1, 2024 · 3 comments

Comments

@khfyf
Copy link

khfyf commented Apr 1, 2024

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
Copy link
Owner

ncarlier commented Apr 1, 2024

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
Copy link
Author

khfyf commented Apr 1, 2024

this works.. thanks guys

May goodness always be with you

My greetings from Indonesia..

@ncarlier
Copy link
Owner

ncarlier commented Apr 1, 2024

Glad it worked out. Greetings from France :)

@ncarlier ncarlier closed this as completed Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants