Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkishner/3eac98227693bff57f9f to your computer and use it in GitHub Desktop.
Save jkishner/3eac98227693bff57f9f to your computer and use it in GitHub Desktop.
#! /bin/bash
encodedmessage=$(echo "$message" | sed -f urlencode.sed)
encodedaction=$(echo "$action" | sed -f urlencode.sed)
curl -s \
-F "token=$APP_TOKEN" \
-F "user=$USER_KEY" \
-F "message=drafts:///create?text=$encodedmessage&action=$encodedaction" \
https://api.pushover.net/1/messages.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment