Skip to content
This repository has been archived by the owner on Jun 12, 2019. It is now read-only.

UNOFFICIAL API wrapper for argo scuolanext written in dart.

License

Notifications You must be signed in to change notification settings

veetaw/argo-scuolanext-dart

Repository files navigation

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

About

UNOFFICIAL API wrapper for argo scuolanext written in dart.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages