Skip to content

Instantly share code, notes, and snippets.

@jamesseanwright
Created May 21, 2021 20:03
Show Gist options
  • Select an option

  • Save jamesseanwright/9a29407d6227217e2d77677ac5a1265e to your computer and use it in GitHub Desktop.

Select an option

Save jamesseanwright/9a29407d6227217e2d77677ac5a1265e to your computer and use it in GitHub Desktop.
$ curl -XPOST "http://$API_HOST/events" -H "Content-Type: application/json" -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