-
Notifications
You must be signed in to change notification settings - Fork 43
API
Alexandr Topilski edited this page Sep 20, 2019
·
4 revisions
Public API, client server communication via JSON RPC , but with some modification for TCP messages: first 4 bytes size of compressed(gzip) json message.
-
Acitivate client:
{ "jsonrpc": "2.0", "method": "client_active", "id": "0000000000000000", "params": { "login": "anon@fastogt.com", "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 } }