1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 11:58:13 +00:00

feat: massive overhaul

This commit is contained in:
James Cook 2023-04-07 13:47:08 +01:00
parent 22e21f9fcd
commit 24208c310e
10 changed files with 704 additions and 583 deletions

View file

@ -3,10 +3,10 @@ import { API_BASE_STUDENT, BASE_URL } from "./consts";
import { ClasschartsClient } from "./baseClient";
import { parseCookies } from "./utils";
/**
* The base client
* Student Client
*/
export class ClasschartsStudentClient extends ClasschartsClient {
export class StudentClient extends ClasschartsClient {
public studentCode = "";
public dateOfBirth = "";
@ -57,6 +57,6 @@ export class ClasschartsStudentClient extends ClasschartsClient {
this.sessionId = sessionID.session_id;
await this.getNewSessionId();
const user = await this.getStudentInfo();
this.studentId = user.id;
this.studentId = user.data.user.id;
}
}