Skip to main content

SDK

Install package#

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

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

Code Examples#

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

using System;using System.Threading.Tasks;using AIH.SDK.Clients;using AIH.SDK.Clients.Files;
namespace example{    class Program    {        static async Task Main(string[] args)        {            var client = new FilesClient(new AIHClientAuthenticationOptions("https://URL_FOR_FilesSERVER", "CLIENT_ID", "SECRET", "AIH.Files"));
            var dataTypes = await client.DatatypesGetAsync();
            foreach (var dataType in dataTypes)            {                Console.WriteLine(dataType.Name);            }        }    }}