Skip to content

Instantly share code, notes, and snippets.

@leahtard
Created January 17, 2020 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leahtard/58479c0d164cbb2d4002f4bf8d00f265 to your computer and use it in GitHub Desktop.
Save leahtard/58479c0d164cbb2d4002f4bf8d00f265 to your computer and use it in GitHub Desktop.
Send array of values to webhook with bash
array=( 1 2 3 4 5 456 232131 232312 )
for i in "${array[@]}"
do
curl -v -H "Accept: application/json" \
-H "Content-type: application/json" \
-X POST \
-d '{"id":'${i}'}' \
https://hooks.zapier.com/hooks/catch/######/333333/
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment