Skip to content

The Trinsic C# / .NET SDK

The Trinsic C# / .NET SDK makes it easy to interact with the Trinsic API from your .NET application. The most recent version of the library can be found on NuGet. The Trinsic SDK supports .NET applications written in C#, VB.NET, and F# that utilize any supported version of .NET Core. You can also find the SDKs source on Github.

Supported runtimes

.NET targets for iOS, Android, and Blazor are fully supported using the same package dependencies via .NET 6.

Installation in a new project

Add the required dependencies from Nuget.org

PM> Install-Package Trinsic
dotnet add package Trinsic --prerelease
dotnet add package Okapi.Net --prerelease
<PackageReference Include="Trinsic" />
<PackageReference Include="Okapi.Net" />

This will not be required in future version and only package Trinsic can be used.

Configuration

// accountServiceConstructor() {
var myAccountService = new AccountService(_options);
// }
// accountServiceSignIn() {
var myProfile = await myAccountService.SignInAsync(new());
// }
myAccountService.Options.AuthToken = myProfile;
// accountServiceGetInfo() {
var output = await myAccountService.GetInfoAsync();
// }
Assert.NotNull(output);

Next Steps

Once the .NET SDK package is installed and configured, you're ready to start building! We recommend going through the walkthrough next. If you're ready to dive into building your ecosystem, check out our API Reference

Start Walkthrough Explore API C# API Reference