This is sample implementation of .NET wrapper for Autodesk Tandem REST API. It enables you to easily integrate Tandem REST API into your .NET application.
- Visual Studio 2022
The main object for interacting with Autodesk Tandem is TandemClient
. To use TandemClient
you need to create a new instance and provide a function to obtain an access token:
var client = new TandemClient(() => GetToken());
For more details related to authentication, follow this sample.
The TandemClient
object provides methods to get data from the Tandem database. For example, GetFacilityAsync
provides details about a given facility:
var facility = await client.GetFacilityAsync("urn:adsk.dtt:ZS-qm-sbQWWJnB5tcwBjhQ");
foreach (var item in facility.Links)
{
Console.WriteLine($"{item.Label}:{item.ModelId}");
}