📚
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

Was this helpful?

edjs-docs

Browse EcoleDirecte's private API with the module of your dreams.

These docs may be incomplete.

ecoledirecte.js is a neat node module that lets you interact with the EcoleDirecte private API in a snap. Its goal is not only to make API calls easier but also to take the mess of the ED API and simplify it before giving it to you. The raw data is still always available.

It is built with TypeScript, and all the EcoleDirecte API responses are hard-typed, so everything you do is covered by your IntelliSense and the power of TypeScript.

Each feature takes time to be implemented in the module. But we prefer to offer a minimum of awesomeness when it comes to serving data, we don't want to just give you the API responses.

import { Session } from "ecoledirecte.js"

async function main() {
    const session = new Session("EDELEVE", "0")
    const account = await session.login()
    if (account.type !== "student") return;
    
    const someHomework = await account.getHomework("2021-01-14")
    console.log("Hi,", someHomework[0].prof)
};

main()
NextThe Session class

Last updated 4 years ago

Was this helpful?