TKUCourseApplication 1.0.1

dotnet add package TKUCourseApplication --version 1.0.1
NuGet\Install-Package TKUCourseApplication -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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
#r "nuget: TKUCourseApplication, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TKUCourseApplication as a Cake Addin
#addin nuget:?package=TKUCourseApplication&version=1.0.1

// Install TKUCourseApplication as a Cake Tool
#tool nuget:?package=TKUCourseApplication&version=1.0.1

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.

Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 729 1/12/2019

First Release