
School cards
TBankNet.Junior
Unofficial .NET SDK for T-Bank Junior (school cards)
netstandard2.0net8.0net10.0
Features
- List school cards
- List, create and delete schools
- GOST mTLS + Bearer token
- Parsed T-API error model
Installation
dotnet add package TBankNet.JuniorQuick start
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 cardsGetSchoolsAsyncList schoolsCreateSchoolsAsyncCreate schoolsDeleteSchoolAsyncDelete a schoolREADMEgithub.com/ai-iskuzhin/TBankNet.Junior
Loading README from the repository…