Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ 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