Skip to content

mrousavy/WebUntisSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


WebUntisSharp

A Wrapper of the WebUntis JSON API for .NET for sending and receiving Untis Informations

Documentation NuGet

Buy Me a Coffee at ko-fi.com

How to use

Full guide

Take a look at the wiki to see the full documentation for this API.

Quickstart

1. Add Binaries

2. Create WebUntis Object

  • C#:
WebUntis untis = new WebUntis("mrousavy", "password1234", schoolUrl, "WebUntisSharp API");
  • VB:
Dim untis As new WebUntis("mrousavy", "password1234", schoolUrl, "WebUntisSharp API")

3. Send Requests

  • C#:
var timegrid = await untis.GetTimegrid();
  • VB:
Dim timegrid As Timegrid = Await untis.GetTimegrid()

4. Logout

  • Logout Method

    • C#:
     untis.Logout();
    • VB:
    untis.Logout()
  • using Statement

    • C#:
    using(WebUntis untis = new WebUntis("mrousavy", "password1234", schoolUrl, "WebUntisSharp API"))
       // our Requests to the WebUntis API go here
    }
    // WebUntis Object is now disposed and Logged out (Session has ended)
    • VB:
    Using untis As New WebUntis("mrousavy", "password1234", schoolUrl, "WebUntisSharp API")
       ' Your Requests to the WebUntis API go here
    End Using
    ' WebUntis Object is now disposed and Logged out (Session has ended)