Skip to main content

SDK

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

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

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

Code Examples#

Printing all data origin names in the system#

This is a console app that prints all data origin names in the system.
Exchange URL_FOR_IDENTITYSERVER, URL_FOR_SIGNALS, CLIENT_ID, and SECRET with your own values.

using AIH.SDK.Clients;using AIH.Signals.Clients.v1_2;
namespace Example{    class Program    {        static async Task Main(string[] args)        {            var client = new SignalsClient(new(), "https://URL_FOR_IDENTITYSERVER",                 new AIHClientAuthenticationOptions("https://URL_FOR_SIGNALS", "CLIENT_ID", "SECRET", "AIH.Signals"));
            var dataOrigins = await client.DataOriginsGetAsync();
            foreach (var d in dataOrigins)            {                Console.WriteLine(d.Name);            }        }    }}