WebUntisSharp
Bugfixes and new Constructor
wrapper ของ Webuntis JSON API สำหรับ. NET สำหรับการส่งและรับข้อมูล UNTIS
ลองดูวิกิเพื่อดูเอกสารฉบับเต็มสำหรับ API นี้
นูเกต
Install-Package WebUntisSharp ในคอนโซล Nuget Package Manager (หรือค้นหา 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)