Options
All
  • Public
  • Public/Protected
  • All
Menu

The base client

Hierarchy

  • ClasschartsClient

Index

Constructors

  • Parameters

    • studentCode: string

      Classcharts student code

    • Optional dateOfBirth: string

      Student's date of birth

    Returns ClasschartsClient

Properties

authCookies: undefined | string[]
dateOfBirth: string = ""
sessionId: string = ""
studentCode: string = ""
studentId: number = 0
studentName: string = ""

Methods

  • Gets general information about the logged in student

    Returns Promise<Student>

    Student object

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

    Returns Promise<void>

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

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

    Returns Promise<any>

Generated using TypeDoc