Skip to content

Repository files navigation

A library for Dart developers who's in need of LumiNUS API.

Created from templates made available by Stagehand under a BSD-style license.

Naming courtesy to https://github.com/indocomsoft/fluminus

Usage

A simple usage example:

import'package:luminus_api/luminus_api.dart';
import'package:dotenv/dotenv.dart'show load, env;
main(List<String> args) async {
// Remember to load the env var for the main() of your own application!load();
Future<Authentication> auth =Future.delayed(
Duration(seconds:3),
() =>Authentication(
password: env['LUMINUS_PASSWORD'],
username: env['LUMINUS_USERNAME']));
var modules =awaitAPI.getModules(auth);
for (Module mod in modules) {
print(mod.courseName);
print(mod.id);
print(awaitAPI.getAnnouncements(auth, mod));
var dirs =awaitAPI.getModuleDirectories(auth, mod);
for (var dir in dirs) {
var items =awaitAPI.getItemsFromDirectory(auth, dir);
print(items);
for (var item in items) {
if (item isFile) {
print(awaitAPI.getDownloadUrl(auth, item));
}
}
}
}
print(awaitAPI.getProfile(auth));
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

About

A library for Dart developers in need of LumiNUS API.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages