Search Results for

    Show / Hide Table of Contents

    .NET client

    To consume the REST api using C# you can use the standard Client class and use the Get and Post methods. This will use the clients authentication when performing the REST call

    Example using Get and asset search

    var parameters = new NameValueCollection
    {
        {"$search","flower"},
        {"$top","10"}
    };
    
    var oDataResponse = client.Get<ODataResponse<Asset>>("assets", parameters);
    if (oDataResponse?.Value != null)
    {
        foreach (var asset in oDataResponse.Value)
        {
            //...
        }
    }
    
    In This Article
    Back to top (c) Meriworks 2002-2022