Skip to content

Instantly share code, notes, and snippets.

@blacklight
Created July 26, 2019 15:07
Show Gist options
  • Save blacklight/7ea2ce292dc4a07286486f4dc98cc06f to your computer and use it in GitHub Desktop.
Save blacklight/7ea2ce292dc4a07286486f4dc98cc06f to your computer and use it in GitHub Desktop.
[Medium] platypush request example cURL
# cURL example
curl -XPOST -H 'Content-Type: application/json' \
-d '{"type":"request", "action":"light.hue.on", "args": {"groups": ["Living Room", "Bedroom"]}}' \
http://localhost:8008/execute
# HTTPie example
echo '{"type":"request", "action":"light.hue.on", "args": {"groups": ["Living Room", "Bedroom"]}}' | http http://localhost:8008/execute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment