WebUntisSharp
Bugfixes and new Constructor
Обертка API Webuntis JSON для .NET для отправки и получения Untis Information
Взгляните на вики, чтобы увидеть полную документацию для этого API.
Nuget
Install-Package WebUntisSharp в консоли диспетчера пакетов Nuget. (Или поиск WebUntisSharp на Nuget)Вручную
References правой кнопкой мыши в представлении «Дерево проекта» нажмите Add References и Browse файл .dll ) WebUntis untis = new WebUntis ( "mrousavy" , "password1234" , schoolUrl , "WebUntisSharp API" ) ; Dim untis As new WebUntis( "mrousavy" , "password1234" , schoolUrl, "WebUntisSharp API" ) var timegrid = await untis . GetTimegrid ( ) ; Dim timegrid As Timegrid = Await untis.GetTimegrid()Метод выхода
untis . Logout ( ) ; untis.Logout()используя оператор
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) 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)