Created
February 26, 2016 18:00
-
-
Save mlapida/6c0646a60a3ddcc661ad to your computer and use it in GitHub Desktop.
A webhook to be used with a Particle Photon
This file contains hidden or 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": "sendSleep", | |
"url": "https://[yourendpoint].execute-api.us-east-1.amazonaws.com/prod/ParticleSleepV1", | |
"requestType": "Post", | |
"headers": { | |
"x-api-key" : "[yourapikey]" | |
}, | |
"json": { | |
"name": "{{SPARK_EVENT_NAME}}", | |
"data": "{{SPARK_EVENT_VALUE}}", | |
"source": "{{SPARK_CORE_ID}}", | |
"published_at": "{{SPARK_PUBLISHED_AT}}" | |
}, | |
"mydevices": true, | |
"noDefaults": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment