Skip to content

Instantly share code, notes, and snippets.

@jamesseanwright
Last active July 18, 2021 23:01
Show Gist options
  • Save jamesseanwright/afe4493530f8847ffd6dc2e82eef956a to your computer and use it in GitHub Desktop.
Save jamesseanwright/afe4493530f8847ffd6dc2e82eef956a to your computer and use it in GitHub Desktop.
$ curl -XPOST "https://xxxxxxxxxx.execute-api.eu-west-1.amazonaws.com/production/events" \
-H "Content-Type: application/json" \
-H "x-api-key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
-d '{
"date": "'$(date -u +%FT%TZ)'",
"deviceID": "8f188304-e7b3-4a16-a243-b9470468478a",
"eventType": "temp_celcius",
"value":3
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment