Skip to content

Commit

Permalink
PolytechColloscopeClient Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
FlashOnFire committed Oct 21, 2023
1 parent c564a39 commit 078ab05
Showing 1 changed file with 57 additions and 1 deletion.
58 changes: 57 additions & 1 deletion packages/polytechcolloscopeclient/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,57 @@
# TODO
# PolytechColloscopeClient

PolytechColloscopeClient is a library aiming at providing a simple interface to fetch data from Polytech Lyon Colloscope
Website

### Usage :

To begin with, you need to create a new instance of the client :

```Dart
var client = PolytechColloscopeClient(username, password);
```

Then, you can fetch various data from the website :

Get the list of all the students (returns a list of Student objects containing student name and ID) :
You must specify the year of the students you want to fetch using the Year enum (Year.first or Year.second)
Example :

```Dart
var students = await
client.getStudents
(
Year
.
second
);
```

You can also fetch a specific student using his name, surname and year (actually, only the first letter of the name is
required since the website only shows the inital) :

```Dart
var student = await
client.fetchStudent
(Year.second, name, surname);
```

You can then get the student's colloscope :

```Dart
var colloscope = await
client.fetchColloscope
(
student
);
```

The colloscope contains a Student object, its trinomeID, and a list of kholles
Each Kholle object contains the date of the kholle, the subject, the kholleur, and possibly a message containing the
room (if present on the website)


0 comments on commit 078ab05

Please sign in to comment.