/argo-scuolanext-dart

UNOFFICIAL API wrapper for argo scuolanext written in dart.

Primary LanguageDartGNU General Public License v3.0GPL-3.0

Argo ScuolaNext

A ScuolaNext UNOFFICIAL API wrapper written in Dart.

This package can be used on both Dart (Web & CLI) and Flutter.

Usage

First import this package with:

import 'package:scuolanext/scuolanext.dart';

then instantiate a Client object:

Client client = new Client();

Login

There are two ways to login, with school code, user and password and with school code and token. Do the first login using the first way:

await client.firstLogin(
  schoolCode: "ssXXXX",
  username: "XXXXXXXXXX",
  password: "XXXXXXXXXXXXXXXXXXXXX",
 );

then save the token:

String token = client.token;  // obviously run this after login

so next time you can login with:

await client.initClient(
  schoolCode: "ssXXXX",
  token: token,
);

Example

see example/

docs

To build dart docs just cd into this directory and then run

dartdoc

TODO

  • implement scrutiny in votes()
  • test all methods of client()

special thanks