Skip to content

Instantly share code, notes, and snippets.

@Fenytestver
Forked from sidwarkd/twilio.json
Created July 4, 2018 13:22
Show Gist options
  • Save Fenytestver/196233c25fc11445ee7015622b9275c1 to your computer and use it in GitHub Desktop.
Save Fenytestver/196233c25fc11445ee7015622b9275c1 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