Skip to content

Instantly share code, notes, and snippets.

@rcg4u
Forked from ryonsherman/pushover.sh
Created August 20, 2013 08:52
Show Gist options
  • Save rcg4u/6278942 to your computer and use it in GitHub Desktop.
Save rcg4u/6278942 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
URL="https://api.pushover.net/1/messages.json"
API_KEY=""
USER_KEY=""
DEVICE=""
TITLE="${1}"
MESSAGE="${2}"
curl \
-F "token=${API_KEY}" \
-F "user=${USER_KEY}" \
-F "device=${DEVICE}" \
-F "title=${TITLE}" \
-F "message=${MESSAGE}" \
"${URL}" > /dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment