ecoledirecte.js
Version:
Good-looking client for EcoleDirecte's private API.
16 lines (15 loc) • 514 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getGrades = void 0;
const v3_1 = require("ecoledirecte-api-types/v3");
const util_1 = require("../util");
async function getGrades(id, token, context = {}) {
const body = await (0, util_1.makeRequest)({
method: "POST",
path: v3_1.Routes.studentGrades(id),
body: { token },
guard: true,
}, { userId: id, action: "getGrades", ...context });
return body;
}
exports.getGrades = getGrades;