Last active
November 20, 2015 14:18
-
-
Save toolboc/f170e7e0a7723d4466f2 to your computer and use it in GitHub Desktop.
Particle WebHook for Azure Event Hubs
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
{ | |
"event": "NAME_OF_YOUR_EVENT", | |
"url": "EVENT_HUB_URL", | |
"requestType": "POST", | |
"json": { | |
"subject": "{{subject}}", //will map to variable "subject" in your .ino | |
"data": "{{data}}", //json formatted payload mapped to variable "data" in your .ino | |
"timecreated": "{{SPARK_PUBLISHED_AT}}", //webhook template for current time, http://docs.particle.io/core/webhooks/#templates | |
}, | |
"azure_sas_token": { | |
"key_name": "KEY_NAME_FROM_STEP_1", | |
"key": "KEY_FROM_STEP_1" | |
}, | |
"mydevices": true | |
} |
There is an error in current version. You need to take out the last "," after "timecreated": "{{SPARK_PUBLISHED_AT}}",
Also, the NAME_OF_YOUR_EVENT should end with "/messages"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Comments are not valid inside json so the user will have to take them out (http://stackoverflow.com/questions/244777/can-i-use-comments-inside-a-json-file)