Skip to content

hduLib/hdu-lis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
})

Thx

Thanks to the followings for their help.

  • @BaiMeow
  • @Camera-2018
  • @AkaAny

More

npm login
npm publish

About

life is short, you need lis:)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published