-
Notifications
You must be signed in to change notification settings - Fork 43
API
Alexandr Topilski edited this page May 26, 2020
·
4 revisions
Public API, client-server communication via JSON RPC, but with some modification for TCP messages: first 4 bytes size of the message and compressed(gzip) json payload.
-
Activate device:
{ "jsonrpc": "2.0", "method": "client_activate_device", "id": "0000000000000000", "params": { "login": "[email protected]", "password": "2ae66f90b7788ab8950e8f81b829c947" } }
-
Login client:
{ "jsonrpc": "2.0", "method": "client_login", "id": "0000000000000000", "params": { "login": "[email protected]", "password": "2ae66f90b7788ab8950e8f81b829c947", "device_id": "5971d32fc976287338c015c0" } }
-
Get server info:
{ "jsonrpc": "2.0", "method": "get_server_info", "id": "0000000000000001" }
-
Get channels:
{ "jsonrpc": "2.0", "method": "get_channels", "id": "0000000000000002" }
-
Get channel runtime info:
{ "jsonrpc": "2.0", "method": "get_runtime_channel_info", "id": "0000000000000003", "params": { "channel_id": "5cf00d26af24371a4177dd51" } }
-
Ping server:
{ "jsonrpc": "2.0", "method": "client_ping", "id": "000000000000000a", "params": { "timestamp": 1559554595640 } }