Created
September 29, 2021 17:49
-
-
Save sammko/35e92817ed4420cf4b69e4b3a82d8dc6 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
now=$(date +%s)000 | |
curl -s -H "Content-Type: application/json" -H 'x-api-key:PDh^2-$-M]8(dG8E+Q,FR}zsfz"Q~:N2pp\ykmg9ZEgKVrh42PHS?^sQ6<3;X,?-' https://app.zssk.sk/api/v1/train/delay -d '[{"trainNumber":"'$1'","travelDate":'$now'}]' | jq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment