flutter_mashov_api 0.0.4 flutter_mashov_api: ^0.0.4 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 schoolsResult = await controller.getSchools()
if(schoolsResult.isSucess) {
var schools = schoolsResult.value
}
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()
....
are there any docs...? #
well, the code is pretty well documented. If you have any issues, post a new issue.