Created
July 18, 2013 00:09
-
-
Save burningtree/6025694 to your computer and use it in GitHub Desktop.
Shell script pro odeslani SMS pres API Odorik.cz
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/sh | |
# | |
# odoriksms.sh <recipient> <message> | |
# | |
USER=CHANGE_ME | |
PASSWORD=CHANGE_ME | |
SENDER=00420123456789 | |
# | |
# ------------------------------------ | |
# | |
curl -X POST \ | |
-w "\n" \ | |
-d user=$USER \ | |
-d password=$PASSWORD \ | |
-d sender=$SENDER \ | |
-d recipient=$1 \ | |
-d message=$2 \ | |
"https://www.odorik.cz/api/v1/sms" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment