Created
January 17, 2020 20:14
-
-
Save leahtard/58479c0d164cbb2d4002f4bf8d00f265 to your computer and use it in GitHub Desktop.
Send array of values to webhook with bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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