ekTUI banner

ekTUI

5 devlogs
10h 49m 47s

As I’m a student, I am forced to use a locally developed, google-classroom-like platform, ‘e-klase’. In short, I just don’t like its frontend. Therefore I have set out to develop a wrapper for its API with a TUI written rust. For now I see this as a project I can learn/practice rust on.

This project uses AI

Used jetbrains IDE’s (RustRover) “machine learning-assisted” code completion

ValixT

Refactored my single rust file into 3 rust files,
Implemented a feature I skipped from last time,
Finally moved my temporary test credentials into a .env file, and published my project on github

Attachment
0
ValixT

So I finally got the ‘diary’(schedule] parsing to work for the most part.
Now is likely the time for me to refactor my project which as of writing this has 560 lines of code in a single file. I will try to split into multiple files…

Attachment
0
ValixT

I finally understood how profile selection works on the api.

Despite a post request with a profile id being sent to a profile/switch endpoint, the profile selection actually is actually based on requests X-Profile-Id header. Figuring that out took way longer than expected.

Attachment
0
ValixT

added a working higher level GET method that checks for expired authentication and reauthenticates if needed. Had some trouble with responses being plain gibberish. It was that way because of the ‘Accept-Encoding’ header I had be the same as the one sent from a browser; removing that solved the problem

Attachment
0
ValixT

I have finally managed to implement authentication based on username/password. Took longer than expected.

Not sure what to attach, so here’s the current debug output of the program

Attachment
0