api-ecoledirecte-france

A little API from ecoledirecte

Usage no npm install needed!

<script type="module">
  import apiEcoledirecteFrance from 'https://cdn.skypack.dev/api-ecoledirecte-france';
</script>

README

API ÉCOLEDIRECTE FRANCE

Sample code to get access to the API:

const api = require("api-ecoledirecte-france")

api.login("username", "password")
    .then((token) => {
        console.log(token) // Useful to access to the API...
    })
    .catch((err) => {
        throw err
    })

api.accounts("username", "password")
    .then((accounts) => {
        console.log(accounts)
    })
    .catch((err) => {
        throw err
    })