ecoledirecte.js
Version:
Good-looking client for EcoleDirecte's private API.
18 lines (17 loc) • 625 B
JavaScript
;
// Function that fetches school (input: token)
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTeachersSchools = void 0;
const util_1 = require("../util");
const ecoledirecte_api_types_1 = require("ecoledirecte-api-types");
async function getTeachersSchools(token) {
const body = await (0, util_1.makeRequest)({
method: "POST",
path: ecoledirecte_api_types_1.Routes.teacherSchools(),
body: { token },
guard: true,
teachRoot: true,
}, { action: "getTeachersSchools" });
return body;
}
exports.getTeachersSchools = getTeachersSchools;