Skip to main content

SDK

Install package#

There is a .NET SDK for the Quality API published on nuget.

It can be found here:
https://www.nuget.org/packages/AIH.SDK.Clients.Quality/

Install with (dotnet CLI):
dotnet add package AIH.SDK.Clients.Quality

Code Examples#

This is a console app that prints all categories in the system.
Exchange URL_FOR_QUALITYSERVER, CLIENT_ID, and SECRET with your own values.

using System;using System.Threading.Tasks;using AIH.SDK.Clients;using AIH.SDK.Clients.Quality;
namespace example{    class Program    {        static async Task Main(string[] args)        {            var client = new QualityClient(new AIHClientAuthenticationOptions("https://URL_FOR_QUALITYSERVER", "CLIENT_ID", "SECRET", "AIH.Quality"));
            var categories = await client.CategoriesGetAsync();
            foreach (var category in categories)            {                Console.WriteLine(category.Name);            }        }    }}