Changes

Jump to navigation Jump to search
m
no edit summary
Line 4: Line 4:  
API works via WebSocket connection, so you can interact with your Larnitech server from a browser using extensions (such as WebSocket Test Client).<br><br>
 
API works via WebSocket connection, so you can interact with your Larnitech server from a browser using extensions (such as WebSocket Test Client).<br><br>
 
To get started, you should:<br>
 
To get started, you should:<br>
    1. Establish a web socket connection.
+
  1. Establish a web socket connection.
 +
 
 
<syntaxhighlight lang="xml">
 
<syntaxhighlight lang="xml">
 
ws://IPADDR:PORT/api
 
ws://IPADDR:PORT/api
 
</syntaxhighlight>
 
</syntaxhighlight>
Where:
+
Where: IPADDR – ip address of your metaforsa or DE-MG;<br>
IPADDR – ip address of your metaforsa or DE-MG;
   
PORT – port for API2 (you can get it from LT_Setup =&gt; General =&gt; API =&gt; Websocket port (2041 by default);<br><br>
 
PORT – port for API2 (you can get it from LT_Setup =&gt; General =&gt; API =&gt; Websocket port (2041 by default);<br><br>
    2. Authorize
+
  2. Authorize
 +
 
 
<syntaxhighlight lang="json">
 
<syntaxhighlight lang="json">
 
{
 
{
editor, Interface administrators, Administrators, translation-admin, translator
9,706

edits

Navigation menu