hdu-lis
v1.1.1
Published
life is short, you need lis:)
Downloads
17
Readme
HduLis
life is short, you need lis:)
Usage
Installation
npm i hdu-lis
Cas login
const {casLogin} = require("hdu-lis")
const url ="https://cas.hdu.edu.cn/cas/login?********************"
casLogin(url,your_id, your_pw).then(res =>{
console.log(res.headers)
})
Skl login
const {sklLogin} = require("hdu-lis")
sklLogin(your_id, your_pw).then(res=>{
console.log(res)
})
Skl sign
const { sklSign } = require("hdu-lis");
sklSign(your_id, your_pw).then((res) => {
console.log(res);
})
//return 200
Phy login
http://phy.hdu.edu.cn/
const { phyLogin } = require("hdu-lis");
phyLogin(your_id, your_pw).then((res) => {
console.log(res);
})
//return cookie
Phy Expt
get your experiments
const { phyExpt } = require("hdu-lis");
phyExpt(your_id, your_pw).then((res) => {
console.log(res);
})
//return expt list
Skl course
just for this week
const { sklCourses } = require("hdu-lis");
sklCourses(your_id, your_pw).then((res) => {
console.log(res);
})
Skl today course
just for today
const { sklTodayCourses } = require("hdu-lis");
sklTodayCourses(your_id, your_pw).then((res) => {
console.log(res);
})
Skl now course
just for the rest of today
const { sklNowCourses } = require("hdu-lis");
sklNowCourses(your_id, your_pw).then((res) => {
console.log(res);
})