remoshock >
Development >
REST API
REST API
/remoshock/command
This REST service performances an action ("BEEP", "VIBRATE", "SHOCK", "BEEPSHOCK")
for the specified duration with the specified power level.
Curl example
curl -X POST \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer $authenticationToken' \
-d '{"receiver": 1, "action": "BEEP", "power": 5, "duration": 500}' \
http://localhost:7777/remoshock/command
Replace $authenticationToken with the value from .config/remoshock.ini
JavaScript example
/remoshock/config
This REST service will provide configuration and receiver information. For example: