📚
ecoledirecte.js
  • edjs-docs
  • new Session()
    • The Session class
  • new Account()
    • The Account class
    • The Student class
  • links
  • GitHub
  • NPM
Powered by GitBook
On this page
  • Properties
  • login()
  • credentials
  • token
  • loginRes

Was this helpful?

  1. new Session()

The Session class

The root of any interaction with EcoleDirecte.

Previousedjs-docsNextThe Account class

Last updated 4 years ago

Was this helpful?

import { Session } from "ecoledirecte.js"

The Session class is quite simple to use. It's actually just a stack of properties, nothing much, and it's mostly used to generate an extension of the class, depending on the account type of your session.

const session = new Session("username", "password")

Properties

login()

  • no arguments

  • returns an extension of Account

credentials

  • can only get

  • returns the credentials given during the class init

token

  • last token given by EcoleDirecte

loginRes

  • complete login response got during the login() call

Account