wrapper for classroom in google library. modified from this example
Get credentials.json
from Google console or file from the example url (select web app). Save it in the project root directory.
For the first run, you'll need to follow the link and authorize the app.
- in progress (refactor)
view classroom-api
for available functions, and google-apis
for setup.
import {GoogleClassroom} from "./classroom-api";
setupGoogleApi(authenticator, subject, studentListPath)
.then(googleApis => {
const drive = GoogleDrive(googleApis.drive);
const classroom = GoogleClassroom(googleApis.classroom, googleApis.drive, googleApis.classromId)
})
When downloading multiple files, it's necessary to throttle the requests on your side, otherwise request limit error will be thrown.
You are also free to use mailer.ts exported functions sendEmails
and sendEmail