1.0.1 • Published 3 years ago
djshs v1.0.1
djshs
fuck djshs
1. How to install
$ npm install djshs2. 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, password3. get sutdent data
client.getStudentInfo().then(data => {
console.log(data);
});4. submit study location
client.roomSubmit(17, 1, client.getCurrDate()) // room_id, time, date5. get points
client.getPoint(1).then(data => { // grade
console.log(data);
});6. get total points
client.getTotalPoint(1).then(data => { // grade
console.log(data);
});