Updated Configuration (markdown)
parent
d5e751152f
commit
1f91df553c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue