TKUCourseApplication 1.0.1

TKU Course Application course order library.

Install-Package TKUCourseApplication -Version 1.0.1
dotnet add package TKUCourseApplication --version 1.0.1
<PackageReference Include="TKUCourseApplication" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TKUCourseApplication --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

A .NET wrapper for TKUCourseApplication

This is a program to help you on TKU curriculum online system (Include the break captcha).

TKU Curriculum Online System(Chinese) TKU Curriculum Online System(English)

Package examples : GitHub

Dependencies

Microsoft .NET Framework 4.5

Since TKUCourseApplication compiled with Visual Studio 2017 you'll need to ensure you have the
Microsoft .NET Framework 4.5 installed.

Methods

Chinese Server,English Server

  • Login()
    public bool Login(string stu_id, string stu_pwd);
    Parameters
    stu_id string
    Your student id
    stu_pwd string
    Your student password
    Returns
    bool
    Returns true if the login was successful, otherwise returns false.
  • AddCourse()
    public bool AddCourse(string course_id);
    Parameters
    course_id string
    Course number
    Returns
    bool
    Returns true if the course add successful, otherwise returns false.
  • DropCourse()
    public bool DropCourse(string course_id);
    Parameters
    course_id string
    Course number
    Returns
    bool
    Returns true if the course drop successful, otherwise returns false.

Examples

Chinese Server

TKUCourse.CHT tku = new TKUCourse.CHT();

//If success login, return true, else return false
while (tku.Login("your_student_id", "your_student_password") == false){
    Console.WriteLine("Attempt login...");
}

//If add successfully, return true, else return false
if (tku.AddCourse("1234")){
    Console.WriteLine("Add Successfully!!");
}
else{
    Console.WriteLine("Add Failed!!");
}
	
//If drop successfully, return true, else return false
if (tku.DropCourse("1234")){
    Console.WriteLine("Drop Successfully!!");
}
else{
    Console.WriteLine("Drop Failed!!");
}

English Server

TKUCourse.ENG tku = new TKUCourse.ENG();

//If success login, return true, else return false
while (tku.Login("your_student_id", "your_student_password") == false){
    Console.WriteLine("Attempt login...");
}

//If add successfully, return true, else return false
if (tku.AddCourse("1234")){
    Console.WriteLine("Add Successfully!!");
}
else{
    Console.WriteLine("Add Failed!!");
}
	
//If drop successfully, return true, else return false
if (tku.DropCourse("1234")){
    Console.WriteLine("Drop Successfully!!");
}
else{
    Console.WriteLine("Drop Failed!!");
}

Other Examples

You can get more examples from our GitHub.

A .NET wrapper for TKUCourseApplication

This is a program to help you on TKU curriculum online system (Include the break captcha).

TKU Curriculum Online System(Chinese) TKU Curriculum Online System(English)

Package examples : GitHub

Dependencies

Microsoft .NET Framework 4.5

Since TKUCourseApplication compiled with Visual Studio 2017 you'll need to ensure you have the
Microsoft .NET Framework 4.5 installed.

Methods

Chinese Server,English Server

  • Login()
    public bool Login(string stu_id, string stu_pwd);
    Parameters
    stu_id string
    Your student id
    stu_pwd string
    Your student password
    Returns
    bool
    Returns true if the login was successful, otherwise returns false.
  • AddCourse()
    public bool AddCourse(string course_id);
    Parameters
    course_id string
    Course number
    Returns
    bool
    Returns true if the course add successful, otherwise returns false.
  • DropCourse()
    public bool DropCourse(string course_id);
    Parameters
    course_id string
    Course number
    Returns
    bool
    Returns true if the course drop successful, otherwise returns false.

Examples

Chinese Server

TKUCourse.CHT tku = new TKUCourse.CHT();

//If success login, return true, else return false
while (tku.Login("your_student_id", "your_student_password") == false){
    Console.WriteLine("Attempt login...");
}

//If add successfully, return true, else return false
if (tku.AddCourse("1234")){
    Console.WriteLine("Add Successfully!!");
}
else{
    Console.WriteLine("Add Failed!!");
}
	
//If drop successfully, return true, else return false
if (tku.DropCourse("1234")){
    Console.WriteLine("Drop Successfully!!");
}
else{
    Console.WriteLine("Drop Failed!!");
}

English Server

TKUCourse.ENG tku = new TKUCourse.ENG();

//If success login, return true, else return false
while (tku.Login("your_student_id", "your_student_password") == false){
    Console.WriteLine("Attempt login...");
}

//If add successfully, return true, else return false
if (tku.AddCourse("1234")){
    Console.WriteLine("Add Successfully!!");
}
else{
    Console.WriteLine("Add Failed!!");
}
	
//If drop successfully, return true, else return false
if (tku.DropCourse("1234")){
    Console.WriteLine("Drop Successfully!!");
}
else{
    Console.WriteLine("Drop Failed!!");
}

Other Examples

You can get more examples from our GitHub.

Release Notes

First Release

  • .NETFramework 4.5

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 196 1/12/2019