SDK
There is a .NET SDK for the Risks API published on nuget.
It can be found here:
https://www.nuget.org/packages/AIH.Risks.Clients
Install with (dotnet CLI):
dotnet add package AIH.Risks.Clients
#
Code Examples#
Printing all risk names in the systemThis is a console app that prints all risk names in the system.
Exchange URL_FOR_IDENTITYSERVER, URL_FOR_RISKS, CLIENT_ID, and SECRET with your own values.
using AIH.SDK.Clients;using AIH.Risks.Clients.v1_0;
namespace Example{ class Program { static async Task Main(string[] args) { var client = new RisksClient(new(), "https://URL_FOR_IDENTITYSERVER", new AIHClientAuthenticationOptions("https://URL_FOR_RISKS", "CLIENT_ID", "SECRET", "AIH.Risks"));
var risks = await client.RisksGetAsync();
foreach (var r in risks) { Console.WriteLine(r.Name); } } }}