canteenlib 1.1.2 copy "canteenlib: ^1.1.2" to clipboard
canteenlib: ^1.1.2 copied to clipboard

outdated

Library for communication with the czech canteen food ordering system iCanteen

example/canteenlib_example.dart

import 'package:canteenlib/canteenlib.dart';

void main(List<String> args) async {
  Canteen c = Canteen(
      "https://kantyna.neco.cz"); // vytvořit instanci kantýny, všechna komunikace probíhá skrz ni
  try {
    await c.login("uzivatel", "heslo"); // přihlásit se
    var jidelnicek = await c.jidelnicekDen(den: DateTime.parse("2022-04-04"));
    print((await c.ziskejUzivatele()).kredit);
    var objednano = await c.objednat(jidelnicek.jidla[0]);
    print(objednano.objednano);
  } catch (e) {
    print("Při získávání informací nastala chyba: $e");
  }
}
4
likes
0
points
24
downloads

Publisher

verified publishertomprotiva.com

Weekly Downloads

Library for communication with the czech canteen food ordering system iCanteen

Repository
View/report issues

License

unknown (license)

Dependencies

http

More

Packages that depend on canteenlib