ecoledirecte.js
Version:
Good-looking client for EcoleDirecte's private API.
19 lines (18 loc) • 681 B
JavaScript
;
// Function that retrieves students for specific class
// input: token, class id
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTeachersStudents = void 0;
const ecoledirecte_api_types_1 = require("ecoledirecte-api-types");
const util_1 = require("../util");
async function getTeachersStudents(token, classId) {
const body = await (0, util_1.makeRequest)({
method: "POST",
path: ecoledirecte_api_types_1.Routes.teacherStudents(classId),
body: { token },
guard: true,
teachRoot: true,
}, { action: "getTeachersStudents" });
return body;
}
exports.getTeachersStudents = getTeachersStudents;