Skip to content

Instantly share code, notes, and snippets.

@burningtree
Created July 18, 2013 00:09
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 burningtree/6025694 to your computer and use it in GitHub Desktop.
Save burningtree/6025694 to your computer and use it in GitHub Desktop.
Shell script pro odeslani SMS pres API Odorik.cz
#!/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