Options
All
  • Public
  • Public/Protected
  • All
Menu

The base client

Hierarchy

  • ClasschartsClient

Index

Constructors

constructor

  • Parameters

    • studentCode: string

      Classcharts student code

    • Optional dateOfBirth: string

      Student's date of birth

    Returns ClasschartsClient

Properties

Private authCookies

authCookies: undefined | string[]

dateOfBirth

dateOfBirth: string = ''

Private sessionId

sessionId: string = ''

studentCode

studentCode: string = ''

studentId

studentId: number = 0

studentName

studentName: string = ''

Methods

getActivity

getBehaviour

getLessons

getStudentInfo

  • Gets general information about the logged in student

    Returns Promise<Student>

    Student object

init

  • init(): Promise<void>
  • Initialises the client and authenticates with classcharts

    Returns Promise<void>

listHomeworks

Private makeAuthedRequest

  • makeAuthedRequest(path: string, options: Omit<RequestOptions, "origin" | "path">): Promise<any>
  • Parameters

    • path: string
    • options: Omit<RequestOptions, "origin" | "path">

    Returns Promise<any>

Generated using TypeDoc