WebUntisSharp
Bugfixes and new Constructor
Webuntis JSON API的包装器,用于发送和接收UNTIS信息的.NET
看看Wiki,查看此API的完整文档。
nuget
Install-Package WebUntisSharp进行安装。 (或在Nuget上搜索WebUntisSharp )手动
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)