Created
December 10, 2016 07:58
-
-
Save sidwarkd/ab5c6fbdc0352260a8e9f95d88d6d518 to your computer and use it in GitHub Desktop.
Particle Webhook Config File Template for Twilio Integration
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
{ | |
"eventName": "[EVENT TO LISTEN FOR]", | |
"url": "https://api.twilio.com/2010-04-01/Accounts/[ACCOUNT SID]/Messages", | |
"requestType": "POST", | |
"auth": { | |
"username": "[ACCOUNT SID]", | |
"password": "[AUTH TOKEN]" | |
}, | |
"form": { | |
"From" : "[YOUR TWILIO NUMBER]", | |
"To" : "[THE NUMBER TO SEND TEXT TO]", | |
"Body" : "{{PARTICLE_EVENT_VALUE}}", | |
"MediaUrl" : "[PATH TO IMAGE (OPTIONAL)]" | |
}, | |
"mydevices": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment