Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1.12 KB

README.md

File metadata and controls

24 lines (19 loc) · 1.12 KB

LabelZoom Logo

labelzoom-moca-client-dotnet

Build Status Release codecov

MOCA client for .NET, sponsored by LabelZoom.

How To Use

See tests for more examples.

using (MocaConnection conn = new HttpMocaConnection(url))
{
    await conn.Login(user, password);
    MocaResponse res = await conn.Execute("publish data where message = 'Hello World!'");
    using (DataTable dt = res.ResponseData)
    {
        Console.WriteLine($"Message: {dt.Rows[0].Field<string>("message")}")
    }
}