npm.io
1.0.1 • Published 3 years ago

djshs

Licence
MIT
Version
1.0.1
Deps
5
Size
14 kB
Vulns
1
Weekly
0

djshs

fuck djshs

1. How to install

$ npm install djshs
2. How to use
1. create client
const djshs = require('djshs');
const client = new djshs.Client();

or in typescript

import { Client } from 'djshs';
const client = new Client();
2. login
client.login(20221302, 'password'); // student id, password
3. get sutdent data
client.getStudentInfo().then(data => {
    console.log(data);
});
4. submit study location
client.roomSubmit(17, 1, client.getCurrDate()) // room_id, time, date
5. get points
client.getPoint(1).then(data => { // grade
    console.log(data);
});
6. get total points
client.getTotalPoint(1).then(data => { // grade
    console.log(data);
});