Created
August 26, 2015 20:16
-
-
Save tompedals/cc2f440e0c647a1c29da to your computer and use it in GitHub Desktop.
A simple command line interface for HeyUpdate
This file contains hidden or 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 | |
# You can generate a new personal API token in your user settings (/user/tokens). | |
TOKEN=""; | |
# Send the input as an update | |
curl -X POST \ | |
-H "Authorization: Bearer $TOKEN" \ | |
-H "Content-Type: application/json" \ | |
-d "{\"message\": \"$*\"}" \ | |
https://api.heyupdate.com/updates > /dev/null 2>&1; | |
echo "Update sent"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cp heyupdate.sh /usr/local/bin/heyupdate