Updated Configuration (markdown)

Fabio Manganiello 2018-01-28 14:56:12 +01:00
parent d5e751152f
commit 1f91df553c
1 changed files with 5 additions and 1 deletions

@ -56,7 +56,11 @@ python -m platypush
Send requests:
```shell
curl -XPOST -d "token=YOUR_TOKEN" -d 'msg={"type":"request","target":"volta","action":"shell.exec", "args": {"cmd":"echo ping"}}' http://localhost:8008 | jq
curl -XPOST \
-H "Content-Type: application/json" \
-H "X-Token: YOUR_TOKEN" \
-d '{"type":"request","target":"your_hostname","action":"shell.exec", "args": {"cmd":"echo ping"}}' \
http://localhost:8008/execute
```
```json