KontomanagerClient 2.2.4

dotnet add package KontomanagerClient --version 2.2.4
                    
NuGet\Install-Package KontomanagerClient -Version 2.2.4
                    
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="KontomanagerClient" Version="2.2.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KontomanagerClient" Version="2.2.4" />
                    
Directory.Packages.props
<PackageReference Include="KontomanagerClient" />
                    
Project file
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 KontomanagerClient --version 2.2.4
                    
#r "nuget: KontomanagerClient, 2.2.4"
                    
#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 KontomanagerClient@2.2.4
                    
#: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=KontomanagerClient&version=2.2.4
                    
Install as a Cake Addin
#tool nuget:?package=KontomanagerClient&version=2.2.4
                    
Install as a Cake Tool

Kontomanager Client .NET

.NET Client library that wraps the functionalities provided by the kontomanager.at web management interface used by a number of mobile carriers in Austria (MVNOs in the A1 network). Starting with version 2.1.0, the library also supports A1 accounts, which do not have a Kontomanager interface, but use a different system.

Installation

Simply install the nuget package from https://www.nuget.org/packages/KontomanagerClient to your project.

Carrier Support

The library was testet for:

Other carriers that use Kontomanager but were not tested include:

And possibly more. Feel free to add carriers to that list.

Usage

Basic Example

var client = new XOXOClient("<login_username/number>", "<login_password>")
    .EnableDebugLogging(true) // Enables Console Log outputs
    .UseAutoReconnect(true); // Enables automatic re-login after a connection timeout
    
await client.CreateConnection();

var usage = await client.GetAccountUsage();
usage.PrintToConsole();

2.1.0 Additions

A1 Business

Some extra units, such as USA minutes, are included in the AdditionalQuotas dictionary of PackageUsage. The key is the string used in the MeinA1 interface to describe the unit.

var client = new A1BusinessClient("<login_username/email>", "<login_password>");
await client.CreateConnection();
var numbers = await client.GetSelectablePhoneNumbers();
var usage = await client.GetAccountUsage(numbers.First());
usage.PrintToConsole();

1.2.0 Additions

var client = new XOXOClient("<login_username/number>", "<login_password>")
    .EnableDebugLogging(true) // Enables Console Log outputs
    .UseAutoReconnect(true); // Enables automatic re-login after a connection timeout
    
await client.CreateConnection();

string firstNumber = await client.GetSelectedPhoneNumber(); // returns the currently selected phone number in format 43681...
var usage = await client.GetAccountUsage(); // Get Account usage for firstNumber
usage.PrintToConsole(); // Prints a summary to the console


var numbers = await client.GetSelectablePhoneNumbers(); // gets a list of PhoneNumber object for each number linked to the account (has string number and string subscriberId)
PhoneNumber otherNumber = numbers.First(n => !n.Selected); 
await client.SelectPhoneNumber(otherNumber); // select other phone number for the client
var otherNumberUsage = await client.GetAccountUsage(); // get account usage for otherNumber
otherNumberUsage.PrintToConsole();

Similar projects

The following projects seem to do the same thing as this client in other languages. However, I did not test any of them.

Changelog

2.2.4

  • fix exception in A1BusinessClient.ParseUnitsValidityPeriod caused by MobilPoints ad

2.2.3

  • fix exception in CreateConnection when wrong credentials were provided

2.2.2

  • handle new simple/expert mode selection in Kontomanager

2.2.1

  • handle new phone number selection dropdown structure in Kontomanager

2.2.0

  • update base uri for yesss
  • change target frameworks to netstandard2.0;net8.0;net9.0

04.04.2024 2.1.4

  • set culture for parsing numbers to de-DE. This fixes the problem where used data was read incorrectly if the system locale is not de-DE.

04.04.2024 2.1.3

  • add more information to A1BusinessClient, such as contract validity periods, loyalty points and customer number.
  • fix bugs found in versions 2.1.0 - 2.1.2

03.04.2024 2.1.0

  • add ICarrierAccount interface to introduce a common interface for all carriers
  • add support for non-kontomanager MeinA1 accounts via the A1BusinessClient

27.03.2023 2.0.6

  • fix bug that parsed the remaining EU data incorrectly

07.03.2023 2.0.5

  • fix bug that returned null instead of an empty list for selectable phone numbers

28.02.2023 2.0.4

  • fix bug that caused prepaid credit to be read incorrectly if system culture was not german

20.02.2023 2.0.3

  • includes fix intended for 2.0.2

20.02.2023 2.0.2

  • bug fixes

16.02.2023 2.0.1

  • bug fixes

15.02.2023 2.0.0

This is a breaking change. Some methods were removed and the constructor was refactored to only require one URL.

  • remove no longer supported WebSMS functionality
  • add support for new Kontomanager UI

07.06.2022 1.2.7

  • added a function to extract the selected phone number from the header

07.06.2022 1.2.6

  • fix issue that caused an exception when the settings.php page redirects to kundendaten.php for disabled phone numbers

03.06.2022 1.2.5

  • fix issue that caused an exception when trying to switch to a phone number that has been deactivated

20.05.2022 1.2.3

  • fix issue with package validity not being read for some packages
  • add .net6 as target framework

19.05.2022 1.2.2

  • fix wrong used data number for eu data

19.05.2022: 1.2.1

  • fix bad return value in CreateConnection

19.05.2022: 1.2.0

  • add support for multiple sims managed under one account
  • add support for reading basic information on the contract (available min/sms/mb, ...)
UPDATE 02/2023

The Kontomanager Web interface has had a major design overhaul. Unfortunately, the WebSMS functionality was removed in the process. v1.x is no longer working for at least XOXO and YESSS as of 15.02.2023.

v2.0.0 provides basic account usage reading functionality comparable to what was present before. Reading of current monthly cost is not implemented yet.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.2.4 429 11/12/2025
2.2.3 296 11/11/2025
2.2.2 297 11/11/2025
2.2.1 298 11/11/2025
2.2.0 223 11/9/2025
2.1.4 627 4/4/2024
2.1.3 175 4/4/2024
2.1.2 174 4/4/2024
2.1.1 176 4/4/2024
2.1.0 184 4/4/2024 2.1.0 is deprecated because it has critical bugs.
2.0.6 563 3/27/2023
2.0.5 357 3/7/2023
2.0.4 377 2/28/2023
2.0.3 358 2/20/2023
2.0.2 348 2/20/2023
2.0.1 355 2/16/2023
2.0.0 365 2/15/2023
1.2.7 586 6/7/2022
1.2.6 562 6/7/2022
1.2.5 557 6/7/2022
Loading failed