Changes

no edit summary
Line 4: Line 4:  
API2 works via WebSocket connection, so you can interact with your Larnitech server from a browser using extensions (such as WebSocket Test Client).<br>
 
API2 works via WebSocket connection, so you can interact with your Larnitech server from a browser using extensions (such as WebSocket Test Client).<br>
 
To get started, you should:<br><br>
 
To get started, you should:<br><br>
1. Establish a web socket connection.<br>
+
1. Establish a web socket connection.<br> Locally
 
<syntaxhighlight lang="xml">
 
<syntaxhighlight lang="xml">
 
ws://IPADDR:PORT/api
 
ws://IPADDR:PORT/api
 
</syntaxhighlight>
 
</syntaxhighlight>
 
Where: IPADDR – ip address of your metaforsa or DE-MG;<br>
 
Where: IPADDR – ip address of your metaforsa or DE-MG;<br>
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>
 +
Or use next for remote:
 +
<syntaxhighlight lang="xml">
 +
wss://SERIAL.in.larnitech.com:8443/api
 +
</syntaxhighlight>
 +
Where: SERIAL is serial number of your server, you can find it in LT_Setup =&gt; General <br><br>
 
2. Authorize
 
2. Authorize
 
<syntaxhighlight lang="json">
 
<syntaxhighlight lang="json">
editor, translator
36

edits