Skip to content

Instantly share code, notes, and snippets.

@sidwarkd
Created December 10, 2016 07:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sidwarkd/ab5c6fbdc0352260a8e9f95d88d6d518 to your computer and use it in GitHub Desktop.
Save sidwarkd/ab5c6fbdc0352260a8e9f95d88d6d518 to your computer and use it in GitHub Desktop.
Particle Webhook Config File Template for Twilio Integration
{
"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