Created
May 11, 2016 06:46
-
-
Save nippe/602ecc2647ac2f4e699da27486676b88 to your computer and use it in GitHub Desktop.
This file contains 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
$ 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