BenjaminBiber.Untis
0.0.1
dotnet add package BenjaminBiber.Untis --version 0.0.1
NuGet\Install-Package BenjaminBiber.Untis -Version 0.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BenjaminBiber.Untis" Version="0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BenjaminBiber.Untis" Version="0.0.1" />
<PackageReference Include="BenjaminBiber.Untis" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BenjaminBiber.Untis --version 0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BenjaminBiber.Untis, 0.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package BenjaminBiber.Untis@0.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BenjaminBiber.Untis&version=0.0.1
#tool nuget:?package=BenjaminBiber.Untis&version=0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
BenjaminBiber.Untis
Ein schlanker WebUntis-Client zum Anmelden und Abrufen von Lehrinhalten pro Fach aus dem Stundenplan.
Installation
dotnet add package BenjaminBiber.Untis
Schnellstart (Singleton)
using BenjaminBiber.Untis;
var client = UntisClient.Instance;
var authResult = await client.AuthenticateAsync("BENUTZER", "PASSWORT");
if (!authResult.IsSuccess)
{
Console.WriteLine(authResult.Error?.Message ?? "Login fehlgeschlagen.");
return;
}
var weekDate = new DateOnly(2026, 1, 12);
var teachingResult = await client.GetTeachingContentBySubjectAsync(weekDate);
if (!teachingResult.IsSuccess)
{
Console.WriteLine(teachingResult.Error?.Message ?? "Abruf fehlgeschlagen.");
return;
}
var teachingBySubject = teachingResult.Value ?? new Dictionary<string, IReadOnlyList<string>>();
foreach (var entry in teachingBySubject)
{
Console.WriteLine(entry.Key);
foreach (var content in entry.Value)
{
Console.WriteLine($"- {content}");
}
}
Konfiguration
Standardwerte:
BaseUrl:https://bs-lauingen.webuntis.comSchool:bs-lauingen
Falls du andere Werte verwenden willst:
var client = new UntisClient(new UntisClientOptions
{
BaseUrl = "https://meine-schule.webuntis.com",
School = "meine-schule"
});
API-Methoden
AuthenticateAsync(string username, string password, CancellationToken ct = default)→Task<UntisResult>GetTeachingContentBySubjectAsync(DateOnly weekDate, CancellationToken ct = default)→Task<UntisResult<IReadOnlyDictionary<string, IReadOnlyList<string>>>>GetTeachingContentBySubjectAsync(DateOnly start, DateOnly end, CancellationToken ct = default)→Task<UntisResult<IReadOnlyDictionary<string, IReadOnlyList<string>>>>
Die Rueckgabe ist ein Dictionary: Fach -> Liste von teachingContent.
Errorhandling
- Methoden liefern
UntisResultoderUntisResult<T>mitIsSuccessundError. UntisErrorenthaelt Details wieStatusCode,RequestUriundResponseBody.
Release zu NuGet.org
Die GitHub Action publiziert beim Push eines Tags:
- Tag-Format:
vX.Y.Z(z. B.v1.2.0) - Geheimnis:
NUGET_API_KEYin den Repository-Secrets
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.