School cards

TBankNet.Junior

Unofficial .NET SDK for T-Bank Junior (school cards)

TBankNet.Junior version on NuGetTBankNet.Junior downloads on NuGetMITC#
netstandard2.0net8.0net10.0

Features

  • List school cards
  • List, create and delete schools
  • GOST mTLS + Bearer token
  • Parsed T-API error model

Installation

bash
dotnet add package TBankNet.Junior

Quick start

csharp
using TBankNet.Junior;

// mTLS: attach the GOST certificate to the HttpClient handler.
var handler = new HttpClientHandler();
handler.ClientCertificates.Add(gostClientCertificate);

using var httpClient = new HttpClient(handler);
var client = new TBankJuniorClient(httpClient, new TBankJuniorClientOptions
{
    ApiToken = "YOUR_API_TOKEN",
});

var cards = await client.GetSchoolCardsAsync(
    from: DateTimeOffset.Parse("2024-09-01T00:00:00Z"),
    to: DateTimeOffset.Parse("2024-09-30T23:59:59Z"));

foreach (var card in cards.Cards)
    Console.WriteLine(card.Uid);

Key methods

GetSchoolCardsAsyncList school cards
GetSchoolsAsyncList schools
CreateSchoolsAsyncCreate schools
DeleteSchoolAsyncDelete a school
READMEgithub.com/ai-iskuzhin/TBankNet.Junior
Loading README from the repository…