Skip to main content

SDK

Install package#

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

It can be found here:
https://www.nuget.org/packages/AIH.SDK.Clients.DataProcessing/ Install with (dotnet CLI):
dotnet add package AIH.SDK.Clients.DataProcessing

Code Examples#

This is a console app that prints the created date of all jobs in the system.
Exchange URL_FOR_DATAPROCESSINGSERVER, CLIENT_ID, and SECRET with your own values.

using System;using System.Threading.Tasks;using AIH.SDK.Clients;using AIH.SDK.Clients.DataProcessing;
namespace example{    class Program    {        static async Task Main(string[] args)        {            var client = new DataProcessingClient(new AIHClientAuthenticationOptions("https://URL_FOR_DATAPROCESSINGSERVER", "CLIENT_ID", "SECRET", "AIH.DataProcessing"));
           var jobs = await client.JobsGetAsync();
            foreach (var job in jobs)            {                Console.WriteLine(job.CreatedDate);            }        }    }}