Skip to content

Latest commit

 

History

History
executable file
·
30 lines (22 loc) · 1.47 KB

README.md

File metadata and controls

executable file
·
30 lines (22 loc) · 1.47 KB

inmation .Net API Client

The client can be downloaded from NuGet.

Example Console application

Code snippet:

using inmation.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));
}