Activity

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