1.0.0-alpha.16 • Published 1 year ago
unicourse v1.0.0-alpha.16
UniCourse Client
This is the client library for UniCourse.
If you are looking for the command line tool, see @unicourse-tw/cli.
This library is targeting Node.js and browsers, it should work in both environments.
Examples
The following examples are in TypeScript (ESM). However, you can use it in CommonJS format as well.
import { UniCourse } from "unicourse";
const uni = new UniCourse();
const user = await uni.login("username", "password");
console.log("Logged in as", user.username);
You can also point the client to a different UniCourse server:
const uni = new UniCourse(undefined, {
server: "https://unicourse.example.com"
});
Reuse a existing token is also possible:
const uni = new UniCourse("token");
1.0.0-alpha.16
1 year ago
1.0.0-alpha.15
1 year ago
1.0.0-alpha.14
1 year ago
1.0.0-alpha.13
1 year ago
1.0.0-alpha.12
1 year ago
1.0.0-alpha.11
1 year ago
1.0.0-alpha.10
1 year ago
1.0.0-alpha.9
1 year ago
1.0.0-alpha.8
1 year ago
1.0.0-alpha.7
1 year ago
1.0.0-alpha.6
1 year ago
1.0.0-alpha.5
1 year ago
1.0.0-alpha.4
2 years ago
1.0.0-alpha.3
2 years ago
1.0.0-alpha.2
2 years ago
1.0.0-alpha.1
2 years ago