Options
All
  • Public
  • Public/Protected
  • All
Menu

The base client

Hierarchy

Index

Constructors

  • new ClasschartsParentClient(email: string, password: string, axiosConfig?: AxiosRequestConfig<any>): ClasschartsParentClient

Properties

API_BASE: string = ""
authCookies: undefined | string[]
axios: AxiosInstance
email: string = ""
password: string = ""
sessionId: string = ""
studentId: number = 0
studentName: string = ""

Methods

  • login(): Promise<void>
  • Logs the user in the client and authenticates with classcharts

    Returns Promise<void>

  • makeAuthedRequest(path: string, options: Omit<AxiosRequestConfig<any>, "path">): Promise<any>
  • selectPupil(pupilId: number): Promise<void>
  • Selects a pupil to be used with API requests

    Parameters

    • pupilId: number

      Pupil ID obtained from this.pupils or getPupils

    Returns Promise<void>

Generated using TypeDoc