Skip to content

mikaeldui/skolplattformen-dotnet-client

Repository files navigation

Skolplattformen .NET Client (unofficial)

Bygge av källkoden NuGet version (MikaelDui.Skolplattformen.Client)

An unofficial .NET client for Skolplattformen. You could use it to create your very own Skolplattformen app with, for example, Xamarin and Blazor!

Currently under development, everything hasn't been tested yet. Please create an issue if you encounter any problems.

Installation

You can install the NuGet package using the following command:

dotnet add package MikaelDui.Skolplattformen.Client --version *

Example

using SkolplattformenVardnadshavareClient client = new();

// Login with BankID
await client.TryAuthenticateAsync("121212-1212");

// Get the current user
var user = await client.GetUserAsync();

// Get children
var children = await client.GetChildrenAsync();

// Get the news for the first child
var news = await client.GetNewsAsync(children[0]);

Related

If you want a JavaScript version, check out the project kolplattformen/embedded-api.