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