An open API service indexing awesome lists of open source software.

https://github.com/cryptoc1/tmetric.net

WIP: Unofficial .NET wrapper of the TMetric REST APIs.
https://github.com/cryptoc1/tmetric.net

dotnet tmetric

Last synced: about 1 month ago
JSON representation

WIP: Unofficial .NET wrapper of the TMetric REST APIs.

Awesome Lists containing this project

README

          

TMetric.NET

*Unofficial .NET wrapper of the TMetric REST APIs.*

![Language](https://img.shields.io/github/languages/top/cryptoc1/tmetric.net)
[![Dependencies](https://img.shields.io/librariesio/github/cryptoc1/tmetric.net)](https://libraries.io/nuget/TMetric.NET)
[![Checks](https://img.shields.io/github/checks-status/cryptoc1/tmetric.net/develop)](https://github.com/Cryptoc1/tmetric.net/actions/workflows/default.yml)
[![Coverage](https://img.shields.io/codecov/c/github/cryptoc1/tmetric.net)](https://app.codecov.io/gh/Cryptoc1/tmetric.net/)
[![Version](https://img.shields.io/nuget/vpre/TMetric.NET)](https://www.nuget.org/packages/TMetric.NET)

## Basic Usage

```csharp
var services = new ServiceCollection()
.AddTMetric( options => options.ApiKey = "..." )
.BuildServiceProvider();

var tmetric = services.GetService();

int clientId = ...;
var client = await tmetric.V2.Clients.Get( clientId );

Console.WriteLine( $"Client: {client.ClientName} {client.ClientId}" );
```