Skip to content

Instantly share code, notes, and snippets.

@luiselizondo
Last active May 21, 2020 19:48
Show Gist options
  • Save luiselizondo/ae9e1c9e8662d155ab17 to your computer and use it in GitHub Desktop.
Save luiselizondo/ae9e1c9e8662d155ab17 to your computer and use it in GitHub Desktop.
#!/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