.Net API Client

The API Clients are not shipped with the product setup executable and are managed and maintained in each respective package manager.

Installation

The client can be downloaded from NuGet.

Example Console application

Code snippet:

using syslib.api;

Client apiClient = new Client();

string WebSocketUrl = "ws://localhost:8002/ws";
ConnectOptions options = new ConnectOptions("USERNAME", "PASSWORD");

// Connect and authenticate. By providing credentials to the connectWs method, the credentials will be stored in the session.
ConnectionResponse connectResponse = apiClient.ConnectWs(WebSocketUrl, options).Result;
if (connectResponse.Error != null)
{
    Console.WriteLine(string.Format("Connect failed: {0}", connectResponse.Error?.First().Message));
}