Service Clients (SDKs)

To simplify access to the Trinsic APIs, we have published service clients in common languages for your use. We are planning to release additional SDKs in other web languages. Please contact us if you are interested in using a different language SDK for your application.

Overview

All of our service clients have been generated using Autorest. We are working on more extensive documentation of them and how to use them, but the packages are documented such that IntelliSense describes the functions available and the parameters for each of them.

Retry Policy

The service clients are automatically configured with a retry policy that attempts to re-call our APIs on a failed request. This is not optimal, and we recommend instantiating each client with the optional parameter of noRetryPolicy: true to combat this.

Nuget and ASP.NET Core

Install-Package Trinsic.ServiceClients

View our C# sample on GitHub.

NPM and Nodejs

Our Javascript client can be found here.

Install it using npm:

npm install --save @trinsic/service-clients

To instantiate clients to interact with various APIs, follow the example below:

const { CredentialsServiceClient, ProviderServiceClient, WalletServiceClient, Credentials, ProviderCredentials } = require("@trinsic/service-clients");
// Credentials API
const credentialsClient = new CredentialsServiceClient(
new Credentials(accessToken, subscriptionKey),
{ noRetryPolicy: true });
// Provider API
const providerClient = new ProviderServiceClient(
new ProviderCredentials(accountSecret),
{ noRetryPolicy: true });
// Wallet API
const walletClient = new WalletServiceClient(
new Credentials(accessToken, subscriptionKey),
{ noRetryPolicy: true });

For more examples, view our Nodejs sample on GitHub or one of our demos.