ecoledirecte.js
Version:
Good-looking client for EcoleDirecte's private API.
17 lines (16 loc) • 556 B
JavaScript
;
//TODO See ed-api-types & Postman research
Object.defineProperty(exports, "__esModule", { value: true });
exports.getWallets = void 0;
const v3_1 = require("ecoledirecte-api-types/v3");
const util_1 = require("../util");
async function getWallets(token, context = {}) {
const body = await (0, util_1.makeRequest)({
method: "POST",
path: v3_1.Routes.studentWallets(),
body: {},
guard: true,
}, { action: "getWallets", ...context }, undefined, token);
return body;
}
exports.getWallets = getWallets;