SkillAgentSearch skills...

WebUntisSharp

:alarm_clock: A Wrapper of the WebUntis JSON API for .NET

Install / Use

/learn @mrousavy/WebUntisSharp
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<p align="center"> <img src="https://raw.githubusercontent.com/mrousavy/WebUntisSharp/master/Images/Logo.png" width="50" /> <br/> <img src="http://sankt-ansgar-schule.de/wp-content/uploads/2016/08/WebUntis.png" height="100" /> <h3 align="center">WebUntisSharp</h3> <p align="center">A Wrapper of the <a href="http://www.untis.at/Downloads/int/Manuals/de/WebUntis.pdf">WebUntis</a> JSON API for .NET for sending and receiving Untis Informations</p> <p align="center"> <a href="https://github.com/mrousavy/WebUntisSharp/wiki"><img src="https://img.shields.io/badge/API-Documentation-green.svg" alt="Documentation"></a> <a href="https://www.nuget.org/packages/WebUntisSharp"><img src="https://img.shields.io/nuget/dt/WebUntisSharp.svg" alt="NuGet"></a> </p> <p align="center"> <a href='https://ko-fi.com/F1F8CLXG' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi2.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a> </p> </p>

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)
    

Related Skills

View on GitHub
GitHub Stars14
CategoryDevelopment
Updated2y ago
Forks7

Languages

C#

Security Score

80/100

Audited on Jun 29, 2023

No findings