flutter_mashov_api 0.0.1 flutter_mashov_api: ^0.0.1 copied to clipboard
The Mashov API - for Flutter. see https://github.com/yanir-edri/flutter-mashov-api for more.
Flutter Mashov Api #
...What is this thing? #
The Mashov (students) API - for flutter.
Where do I get started? #
first of all, inject a nice Api Controller
to your code:
var controller = Injector.getInjector().get(key: "ApiController");
next, get yourself a list of schools:
var schools = await controller.getScholls();
now, you can pick your school and log in with it:
await controller.login(mySchool, myId, mySecretPassword, year);
once you log in successfully... you can do whatever you want!
controller.getGrades();
controller.getBehaveEvents();
....
note that the api is currently NOT handling exceptions... so either wait for me to do it or do it yourself!
are there any docs...? #
well, the code is pretty well documented. If you have any issues, post a new issue.