educa-sdk
Version:
A JavaScript SDK for interacting with the Educa backend API (Admin, Staff, and Student methods)
33 lines (24 loc) • 667 B
JavaScript
// src/classes/Staff.js
import { account } from '../staff/account.js';
import { classroom } from '../staff/classroom.js';
import { course } from '../staff/course.js';
import { exam } from '../staff/exam.js';
import { payroll } from '../staff/payroll.js';
class Staff {
constructor() {
this._init_sections()
}
// initialize sections
async _init_sections() {
}
}
export default Staff;
/*
// example usage
import Client from './sdk/classes/Client';
const client = new Client('your_token_here');
client.getUserProfile({
onSuccess: (data) => console.log('Profile:', data),
onError: (err) => console.error('Error:', err),
});
*/