Skip to content

Instantly share code, notes, and snippets.

@hemanth22
Forked from tateren/ifttt.sh
Created January 19, 2019 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hemanth22/d8e9da381cdda7ef6455c16801419ab4 to your computer and use it in GitHub Desktop.
Save hemanth22/d8e9da381cdda7ef6455c16801419ab4 to your computer and use it in GitHub Desktop.
#!/bin/bash
CURL=/usr/bin/curl
IFTTT_EVENT="$1"
IFTTT_KEY="XXXXXXXXXXXXXXXXXXXXX"
IFTTT_URL="https://maker.ifttt.com/trigger/${IFTTT_EVENT}/with/key/${IFTTT_KEY}"
${CURL} -X POST \
${IFTTT_URL} \
--header "Content-Type: application/json" \
--data-binary "{\"value1\": \"$2\",\"value2\": \"$3\",\"value3\": \"$4\"}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment