Last active
May 21, 2020 19:48
-
-
Save luiselizondo/ae9e1c9e8662d155ab17 to your computer and use it in GitHub Desktop.
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/bash | |
# Instructions to run | |
# create-reminder "Say thanks to Luis for this wonderful IFTTT recipe!" | |
# Instructions to configure | |
# Save this file as /usr/local/bin/create-reminder | |
# Run chmod +x /usr/local/bin/create-reminder | |
# Change the following lines | |
event_name="create_reminder" | |
api_key="change_me if you don't have an API key go to ifttt.com/maker" | |
# Do not edit below this line | |
reminder=$1 | |
echo "Creating reminder: $reminder" | |
curl --silent --show-error -X POST -H "Content-Type: application/json" --data '{"value1": "'"$reminder"'"}' \ | |
https://maker.ifttt.com/trigger/$event_name/with/key/$api_key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment