Skip to content

Instantly share code, notes, and snippets.

@nippe
Created May 11, 2016 06:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nippe/602ecc2647ac2f4e699da27486676b88 to your computer and use it in GitHub Desktop.
$ particle webhook create twilio-hook.json
Using settings from the file twilio-hook.json
Sending webhook request { uri: ‘/v1/webhooks’,
method: ‘POST’,
json:
{ event: ‘twilio’,
url: ‘https://api.twilio.com/2010-04-01/Accounts//Messages',
deviceid: undefined,
requestType: ‘POST’,
mydevices: true,
eventName: ‘twilio’,
auth:
{ username: ‘’,
password: ‘’ },
form:
{ From: ‘’,
To: ‘’,
Body: ‘{{SPARK_EVENT_VALUE}}’ } },
headers: { Authorization: ‘Bearer 7d90b34725afede88ce0b6ec824712121212121212’ } }
Successfully created webhook with ID 573069bd3f3354c212121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment