1.0.1 • Published 1 year ago

djshs v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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